.login-container {
    max-width: 480px;
    margin: 32px auto 80px auto; /* Move up by reducing top margin */
    padding: 0 20px;
}

.login-container h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #ff3b30;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #0066cc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.input-wrapper .checkmark {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c48c;
    opacity: 0;
    transition: opacity 0.2s;
}

.input-wrapper input:valid + .checkmark {
    opacity: 1;
}

button[type="submit"] {
    width: 100%;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.3s, transform 0.1s;
}

button[type="submit"]:hover {
    background-color: #005bb5;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

.error-message {
    background-color: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: none;
    font-size: 14px;
    border-left: 4px solid #ff3b30;
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra Login Options Styles */
.login-extra-options {
    margin-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.extra-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    color: #1976d2;
    background: #f7fafd;
    border-radius: 6px;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.04);
    gap: 7px;
    min-width: 220px;
    max-width: 320px;
    margin: 0 auto;
}
.extra-link:hover {
    background: #e3f0fc;
    color: #125ea2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

.sso-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 0 0;
    color: #b0b0b0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.sso-divider span {
    background: #fff;
    padding: 0 10px;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid #e0e0e0;
    background: #fafbfc;
    color: #222;
    position: relative;
}
.sso-btn .sso-icon {
    width: 22px;
    height: 22px;
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sso-btn .sso-text {
    flex: 1;
    text-align: center;
    display: block;
}
.sso-btn.google,
.sso-btn.microsoft {
    background: #fff;
    color: #222;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.sso-btn.google:hover,
.sso-btn.microsoft:hover {
    background: #f7fafd;
    box-shadow: 0 2px 8px rgba(66,133,244,0.10);
    color: #125ea2;
}
.sso-btn.otp {
    background: #fff;
    color: #222;
    border: 1px solid #e5e7eb;
}
.sso-btn.otp:hover {
    background: #f7fafd;
    box-shadow: 0 2px 8px rgba(66,133,244,0.10);
}
.sso-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}
.icon {
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

/* New Styles */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 16px 0;
}
.login-divider span {
    color: #888;
    font-size: 15px;
    padding: 0 16px;
    background: #fff;
    position: relative;
    z-index: 1;
}
.login-divider:before,
.login-divider:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 4px;
    position: relative;
    top: 0.5em;
    z-index: 0;
}

.login-bottom-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    gap: 8px;
}
.bottom-link {
    color: #1976d2;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.18s;
}
.bottom-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    .login-container {
        margin: 60px auto;
        padding: 0 15px;
    }

    .login-container h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .login-form {
        padding: 30px;
    }
}
