* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Navbar */
.navbar {
    background: #338bf2;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
}

.navbar .container {
    width: 100%;
    max-width: 1200px;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.navbar-header {
    display: flex;
    align-items: center;
    float: none;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    height: auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.navigator-logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.navbar-collapse {
    display: flex !important;
    align-items: center;
    float: none;
    padding: 0;
    margin: 0;
}

.nav.navbar-nav.navbar-right {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    float: none;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#account-support {
    list-style: none;
}

.btn.btn-slim {
    background-color: #FFFFFF;
    color: #1C74D9;
    border: 1px solid #1C74D9;
    padding: 5px 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Muli', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn.btn-slim:hover {
    background-color: #f0f7ff;
    color: #1C74D9;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

.login-container {
    background: #f6f7f8;
    border-radius: 5px;
    padding: 20px 30px 60px;
    width: 100%;
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 40px;
    box-shadow: none;
    border: 1.5px solid #c5d0de;
}

.login-title {
    color: #8994a6;
    font-size: 36px;
    font-weight: 400;
    font-family: 'Muli', sans-serif;
    text-align: center;
    margin: 5px 0px 35px 0px;
    letter-spacing: 0;
}

.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

/* Form Elements */
.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: flex;
    align-items: center;
    color: #8e99a4;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.label-icon {
    margin-right: 7px;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c5d0db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    background: white;
    transition: all 0.2s ease;
    color: #333333;
}

.form-control:focus {
    outline: none;
    border-color: #4a9fe8;
    box-shadow: 0 0 0 2px rgba(74,159,232,0.15);
}

/* Username Display */
.username-display {
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Muli', sans-serif;
}

.username-label {
    color: #004780;
    font-size: 16px;
    font-weight: 400;
}

.username-value {
    color: #004780;
    font-weight: 700;
    font-size: 16px;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
}

.password-display-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 12px;
    font-size: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #4a9fe8;
    border-radius: 3px;
}

.forgot-link {
    color: #1c74d9;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    border-bottom: 1px solid #1c74d9;
    padding-bottom: 0;
    line-height: 1;
}

.forgot-link:hover {
    text-decoration: none;
    border-bottom: 1.5px solid #1c74d9;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: #1c74d9;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 0;
    box-shadow: 0 2px 6px rgba(28,116,217,0.35);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1565c0;
    box-shadow: 0 4px 10px rgba(28,116,217,0.45);
}

/* Separator */
.separator {
    text-align: center;
    position: relative;
    margin: 40px 0 30px;
    overflow: visible;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 26%;
    height: 1px;
    background: #8994a6;
}

.separator::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 26%;
    height: 1px;
    background: #8994a6;
}

.separator span {
    background: #f6f7f8;
    padding: 0 5px;
    color: #8994a6;
    font-size: 18px;
    font-weight: 450;
    position: relative;
}

/* Links */
.text-center {
    text-align: center;
}

.link-enroll {
    color: #1c74d9;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    font-family: 'Muli', sans-serif;
}

.link-enroll:hover {
    text-decoration: underline;
}

.link-back {
    color: #1c74d9;
    text-decoration: none;
    font-size: 19px;
    font-weight: 400;
    font-family: 'Muli', sans-serif;
    display: inline-block;
    margin-top: 40px;
}

.link-back:hover {
    text-decoration: underline;
    color: #1565c0;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 24px 16px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

.footer-text {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1e88e5;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .divider {
    color: #9ca3af;
    margin: 0 4px;
}

.footer-links .separator {
    color: #9ca3af;
    margin: 0;
}

.footer-links .separator::before,
.footer-links .separator::after {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        background-color: #ffffff;
    }
    
    .navbar .container {
        padding: 12px 16px;
    }
    
    .navbar-toggle {
        display: flex;
        order: 2;
    }
    
    .navbar-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-logo .logo-text {
        font-size: 20px;
    }
    
    .navigator-logo {
        height: 28px;
    }
    
    #account-support {
        display: none;
    }
    
    main {
        padding: 20px 16px;
        align-items: flex-start;
        background-color: #ffffff;
    }
    
    .login-container {
        background: #f6f7f8;
        padding: 20px 24px 48px;
        max-width: 100%;
        margin: 0;
        box-shadow: none;
        border: 1.5px solid #c5d0de;
        border-radius: 5px;
    }
    
    .login-title {
        font-size: 28px;
        margin-bottom: 36px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-control {
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 16px;
    }
    
    .separator span {
        background: #f6f7f8;
    }
    
    footer {
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }
    
    .footer-text {
        font-size: 11px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
}

/* Error Message */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1c74d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary.hidden {
    display: none;
}
