* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Left side - Background Image */
.background-section {
    width: 70%;
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

.logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #4a6cf7;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.background-text {
    max-width: 600px;
}

.background-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.background-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Right side - Login Form */
.login-section {
    width: 30%;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
}

.login-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-form .input-group {
    margin-bottom: 20px;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: #888;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.forgot-password {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:hover {
    background-color: #3a5ce5;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #888;
    font-size: 0.9rem;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 42%;
    height: 1px;
    background-color: #eee;
}

.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 42%;
    height: 1px;
    background-color: #eee;
}

.sso-providers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sso-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.sso-btn i {
    font-size: 1.2rem;
    color: #555;
}

.sso-btn.google:hover i {
    color: #DB4437;
}

.sso-btn.microsoft:hover i {
    color: #00A4EF;
}

.sso-btn.github:hover i {
    color: #333;
}

.signup-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

.signup-link a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1200px) {
    .background-text h1 {
        font-size: 2.2rem;
    }
    
    .background-text p {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .background-section {
        width: 60%;
    }
    
    .login-section {
        width: 40%;
        padding: 40px 30px;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 900px) {
    .background-section {
        width: 55%;
    }
    
    .login-section {
        width: 45%;
        padding: 40px 25px;
    }
    
    .background-text h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .background-section {
        width: 100%;
        min-height: 40vh;
        height: auto;
        padding: 20px;
        background-attachment: scroll;
        justify-content: center;
    }
    
    .logo {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        font-size: 24px;
    }
    
    .background-text h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .background-text p {
        font-size: 0.95rem;
    }
    
    .login-section {
        width: 100%;
        min-height: 60vh;
        height: auto;
        padding: 30px 20px;
        overflow-y: visible;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .login-form input {
        padding: 12px 14px;
    }
    
    .password-toggle {
        top: 38px;
    }
}

@media (max-width: 480px) {
    .background-section {
        min-height: 35vh;
        padding: 15px;
    }
    
    .logo {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .logo i {
        padding: 6px;
    }
    
    .background-text h1 {
        font-size: 1.4rem;
    }
    
    .background-text p {
        font-size: 0.85rem;
    }
    
    .login-section {
        padding: 20px 15px;
        min-height: 65vh;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .login-header h2 {
        font-size: 1.4rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-form label {
        font-size: 0.85rem;
    }
    
    .login-form input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .password-toggle {
        top: 34px;
        right: 12px;
    }
    
    .remember-forgot {
        font-size: 0.8rem;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .divider {
        font-size: 0.85rem;
        margin: 20px 0;
    }
    
    .sso-btn {
        width: 45px;
        height: 45px;
    }
    
    .sso-btn i {
        font-size: 1.1rem;
    }
    
    .signup-link {
        font-size: 0.85rem;
        margin-top: 20px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .background-section {
        min-height: 30vh;
    }
    
    .background-text h1 {
        font-size: 1.2rem;
    }
    
    .background-text p {
        font-size: 0.8rem;
    }
    
    .login-section {
        min-height: 70vh;
    }
    
    .login-header h2 {
        font-size: 1.2rem;
    }
    
    .sso-btn {
        width: 40px;
        height: 40px;
    }
    
    .sso-btn i {
        font-size: 1rem;
    }
}

/* Fix for very tall but narrow mobile screens */
@media (max-height: 700px) and (max-width: 768px) {
    .login-section {
        overflow-y: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        flex-direction: row;
    }
    
    .background-section {
        width: 50%;
        min-height: 100vh;
        height: 100vh;
        padding: 15px;
    }
    
    .login-section {
        width: 50%;
        min-height: 100vh;
        height: 100vh;
        padding: 20px 15px;
        overflow-y: auto;
    }
    
    .logo {
        position: absolute;
        top: 15px;
        left: 15px;
        margin-bottom: 0;
    }
    
    .background-text h1 {
        font-size: 1.4rem;
    }
}

/* Prevent zoom on input focus for mobile */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}