/* Login Screen - Minimal Clean Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    gap: 32px;
}

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-brand {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #D4A62A 0%, #E6B94D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Login Card */
.login-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #0B1F3B;
    margin-bottom: 32px;
    text-align: center;
}

/* Alert Container */
#alert-container {
    margin-bottom: 20px;
    min-height: 0;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.alert-success {
    background-color: #FFF9E6;
    color: #0B1F3B;
    border: 1px solid #E6B94D;
}

.alert-error {
    background-color: #FEE;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.welcome-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.welcome-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-name {
    color: #D4A62A;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.welcome-section p {
    font-size: 14px;
    color: #163A63;
    font-weight: 400;
    opacity: 0.8;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #0B1F3B;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #53e053;
    box-shadow: 0 0 0 3px rgba(212, 166, 42, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-group input.error {
    border-color: #e74c3c;
}

/* Continue Button */
.continue-btn {
    width: 100%;
    padding: 14px 24px;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

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

.continue-btn svg {
    transition: transform 0.3s ease;
}

.continue-btn:hover svg {
    transform: translateX(4px);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #D4A62A 0%, #E6B94D 100%);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0B1F3B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #53e053 0%, #6ef06e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 166, 42, 0.3);
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #0B1F3B;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Forgot Link */
.forgot-link {
    text-align: center;
    margin-top: 12px;
}

.forgot-link a {
    color: #53e053;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link a:hover {
    color: #3ac03a;
    text-decoration: underline;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.create-account-link {
    color: #53e053;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.create-account-link:hover {
    color: #3ac03a;
    text-decoration: underline;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 13px;
    margin-top: 16px;
}

.privacy-notice svg {
    color: #53e053;
}

/* Register Container - Same as Login */
.register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    gap: 32px;
}

.register-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 48px;
    width: 100%;
    max-width: 520px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .logo-brand {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .logo-brand {
        font-size: 32px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .logo-text {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .left-side {
        padding: 16px;
    }
    
    .welcome-section h1 {
        font-size: 22px;
    }
    
    .welcome-section p {
        font-size: 14px;
    }
    
    .login-form {
        gap: 20px;
    }
    
    .form-group {
        gap: 6px;
    }
}

/* Loading Animation */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-btn.loading .btn-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
