/**
 * OTOEKO Auth Module Styles
 * Login ve 403 sayfaları için ortak stiller
 * 
 * @version 1.0.0
 * @author OTOEKO System
 */

/* Reset */
.auth-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - Auth Pages */
.auth-page {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(221, 112, 57, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    animation: authBgFloat 20s ease-in-out infinite;
}

@keyframes authBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: authFadeInUp 0.6s ease-out;
}

@keyframes authFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dd7039 0%, #c45e2c 100%);
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 15px 40px rgba(221, 112, 57, 0.4);
}

.auth-logo-icon i {
    font-size: 2.25rem;
    color: white;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Glass Card */
.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.auth-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* Alerts */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.auth-alert i {
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

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

.auth-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper i.auth-input-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    transition: color 0.3s;
}

.auth-form-input {
    width: 100%;
    padding: 1rem 1.125rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    color: white;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.auth-form-input:focus {
    outline: none;
    border-color: #dd7039;
    background: rgba(221, 112, 57, 0.08);
    box-shadow: 0 0 0 4px rgba(221, 112, 57, 0.15);
}

.auth-form-input:focus + i.auth-input-icon,
.auth-form-input:focus ~ i.auth-input-icon {
    color: #dd7039;
}

.auth-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

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

/* Caps Lock Warning */
.auth-capslock-warning {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #fbbf24;
    align-items: center;
    gap: 0.375rem;
}

.auth-capslock-warning.show {
    display: flex;
}

/* Remember Row */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.auth-remember-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.auth-remember-check input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #dd7039;
    cursor: pointer;
}

.auth-remember-check span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 1.125rem;
    border: none;
    border-radius: 0.875rem;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s;
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #dd7039 0%, #c45e2c 100%);
    box-shadow: 0 8px 25px rgba(221, 112, 57, 0.4);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(221, 112, 57, 0.5);
}

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

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* Button Spinner */
.auth-btn .auth-spinner {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

.auth-btn.loading .auth-spinner {
    display: block;
}

.auth-btn.loading .auth-btn-text {
    display: none;
}

.auth-btn.loading .auth-btn-icon {
    display: none;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* Button Group */
.auth-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-btn-group .auth-btn {
    flex: 1;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* ============================================
   403 Page Specific Styles
   ============================================ */

/* Error Icon */
.auth-error-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.auth-error-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 50%;
    animation: authIconPulse 2s ease-in-out infinite;
}

.auth-error-icon-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    animation: authRingPulse 2s ease-in-out infinite;
}

@keyframes authIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes authRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.auth-error-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    color: #ef4444;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.5));
}

/* Error Code */
.auth-error-code {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: authGradientShift 3s ease-in-out infinite;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    text-align: center;
}

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

/* Error Title */
.auth-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

/* Error Message */
.auth-error-message {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

/* User Info Card */
.auth-user-info {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
}

.auth-user-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.auth-user-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-user-info-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-user-info-label i {
    width: 1rem;
    text-align: center;
}

.auth-user-info-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
}

.auth-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1.25rem;
    }
    
    .auth-logo-icon {
        width: 64px;
        height: 64px;
    }
    
    .auth-logo-icon i {
        font-size: 1.75rem;
    }
    
    .auth-logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-error-code {
        font-size: 3.5rem;
    }
    
    .auth-error-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .auth-error-icon {
        width: 44px;
        height: 44px;
    }
    
    .auth-btn-group {
        flex-direction: column;
    }
}
