/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Main container */
.login-container {
    min-height: 150vh;
    display: flex;
    flex-direction: column;
}

/* Top blue section */
.top-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    height: 60vh;
    display: flex;
    /* align-items: center;
    justify-content: center; */
    position: relative;
}

.logo-container {
    text-align: center;
    margin-top: -70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.logo i {
    color: #10b981;
    font-size: 28px;
}

/* Bottom light gray section */
.bottom-section {
    background-color: #f8fafc;
    flex: 1;
    position: relative;
    padding: 20px 20px 100px 20px;
    margin-bottom: auto;
}

/* Login form container */
.login-form-container {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
}

.login-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px 40px 50px 40px;
    text-align: center;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.signup-prompt {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 12px;
}

.signup-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover {
    text-decoration: underline;
}

/* Practice info styles */
.practice-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #374151;
}

.practice-info i {
    color: #6b7280;
}

.change-practice {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
}

.change-practice:hover {
    text-decoration: underline;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

/* Password input group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.password-toggle:hover {
    color: #374151;
}

.password-input-group .form-control {
    padding-right: 45px;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

/* Button styles */
.button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 20px;
}

.continue-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.continue-btn:hover {
    background: #059669;
}

.continue-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.btn-loading:not(.d-none) {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.btn-text.d-none {
    display: none;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Assistance and bookmark info */
.assistance-info,
.bookmark-info {
    margin-top: 30px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
}

.assistance-info {
    margin-bottom: 15px;
}

.assistance-info a,
.bookmark-info a {
    color: #3b82f6;
    text-decoration: none;
}

.assistance-info a:hover,
.bookmark-info a:hover {
    text-decoration: underline;
}

.assistance-info i,
.bookmark-info i {
    color: #9ca3af;
}

/* Keyboard shortcut styling */
kbd {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: monospace;
}

/* Footer styles */
.footer {
    position: static;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #6b7280;
    z-index: 100;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright i {
    color: #10b981;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #374151;
}

.footer-link i {
    margin-right: 4px;
}

.footer-right {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    color: #6b7280;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #374151;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-section {
        height: 35vh;
    }
    
    .login-form-container {
        top: -60px;
        max-width: 90%;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-section {
        height: 30vh;
    }
    
    .login-form {
        padding: 24px 16px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
} 