/* assets/auth.css - Authentication pages styling */

/* Auth page container - full screen split layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Left panel - animated gradient */
.auth-gradient-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 25%, #3b82f6 50%, #60a5fa 75%, #93c5fd 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px;
    color: white;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.auth-gradient-content {
    max-width: 600px;
    z-index: 1;
}

.auth-gradient-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-gradient-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Right panel - dark theme */
.auth-dark-panel {
    flex: 1;
    background: #1a1d29;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
}

.auth-logo {
    display: block;
    height: 180px;
    width: auto;
    margin: 0 auto 32px;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
}

.auth-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 40px;
    text-align: center;
}

.auth-greeting {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

/* Form elements */
.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 8px;
}

.auth-label-required::after {
    content: ' *';
    color: #ef4444;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    background: #2d3142;
    border: 1px solid #3f4456;
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #353849;
}

.auth-input::placeholder {
    color: #6b7280;
}

/* Password input with toggle */
.auth-password-wrapper {
    position: relative;
    width: 100%;
}

.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.auth-password-toggle:hover {
    color: #d1d5db;
}

/* Checkbox and remember me */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d1d5db;
    cursor: pointer;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #3f4456;
    background: #2d3142;
    cursor: pointer;
}

/* Links */
.auth-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Buttons */
.auth-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-button:hover {
    background: #1f1f1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background: #4b5563;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #6b7280;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #3f4456;
}

.auth-divider:not(:empty)::before {
    margin-right: 16px;
}

.auth-divider:not(:empty)::after {
    margin-left: 16px;
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #9ca3af;
}

/* 6-digit code inputs */
.auth-code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.auth-code-input {
    width: 60px;
    height: 70px;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    background: #2d3142;
    border: 2px solid #3f4456;
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.2s;
}

.auth-code-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #353849;
    transform: scale(1.05);
}

/* Back link */
.auth-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-top: 24px;
    justify-content: center;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #d1d5db;
}

/* 2FA Setup wizard */
.auth-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.auth-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #3f4456;
    z-index: 0;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.auth-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d3142;
    border: 2px solid #3f4456;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.3s;
}

.auth-step.active .auth-step-circle {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.auth-step.completed .auth-step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.auth-step-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    max-width: 100px;
}

.auth-step.active .auth-step-label {
    color: #d1d5db;
}

.auth-step-description {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    max-width: 100px;
}

/* QR Code display */
.auth-qr-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    display: inline-block;
    margin: 24px auto;
}

.auth-qr-code {
    display: block;
    width: 250px;
    height: 250px;
}

.auth-manual-code {
    background: #2d3142;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 24px;
    border: 1px solid #3f4456;
}

.auth-manual-code-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.auth-manual-code-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Info box */
.auth-info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
}

.auth-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-info-content {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.auth-info-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.auth-info-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.auth-info-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #60a5fa;
    font-weight: bold;
}

/* Password strength indicator */
.auth-password-strength {
    margin-top: 8px;
    margin-bottom: 16px;
}

.auth-strength-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-strength-label.weak {
    color: #ef4444;
}

.auth-strength-label.medium {
    color: #f59e0b;
}

.auth-strength-label.strong {
    color: #10b981;
}

.auth-strength-bar {
    height: 4px;
    background: #3f4456;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.auth-strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.auth-strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.auth-strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.auth-strength-fill.strong {
    width: 100%;
    background: #10b981;
}

/* Password requirements checklist */
.auth-requirements {
    font-size: 12px;
}

.auth-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #6b7280;
}

.auth-requirement.met {
    color: #10b981;
}

.auth-requirement-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Success icon (logout page) */
.auth-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.auth-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

/* Alert/Error messages */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.auth-alert.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Responsive design */
@media (max-width: 1024px) {
    .auth-gradient-panel {
        padding: 60px 40px;
    }
    
    .auth-gradient-title {
        font-size: 42px;
    }
    
    .auth-dark-panel {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-gradient-panel {
        min-height: 40vh;
        padding: 40px 24px;
        align-items: center;
        text-align: center;
    }
    
    .auth-gradient-title {
        font-size: 32px;
    }
    
    .auth-gradient-subtitle {
        font-size: 16px;
    }
    
    .auth-dark-panel {
        min-height: 60vh;
        padding: 40px 24px;
    }
    
    .auth-logo {
        height: 270px;
        margin-bottom: 24px;
    }
    
    .auth-code-inputs {
        gap: 8px;
    }
    
    .auth-code-input {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }
}
