.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: opacity 0.5s;
}

.error-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.banned-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.banned-alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.banned-alert .banned-text {
    flex: 1;
}

.banned-alert .banned-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: opacity 0.5s;
}

.info-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.warning-alert {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.warning-alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.rate-limited .login-btn,
.rate-limited input {
    pointer-events: none;
    opacity: 0.5;
    user-select: none;
}

.rate-limited .password-toggle {
    display: none;
}

.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.maintenance-modal {
    background: var(--surface, #141414);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    padding: 40px 32px;
}

.maintenance-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.maintenance-icon i {
    font-size: 32px;
    color: #f59e0b;
}

.maintenance-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #e5e5e5);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.maintenance-modal p {
    font-size: 14px;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin-bottom: 24px;
}

.maintenance-modal .maintenance-sub {
    font-size: 12px;
    color: var(--text-muted, #666);
    line-height: 1.5;
}

.website-closed .login-card {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.pin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
    padding: 16px;
    box-sizing: border-box;
}

.pin-modal-card {
    background: #000000;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.pin-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.pin-modal-icon {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.pin-modal-icon i {
    font-size: 24px;
    color: #000000;
}

.pin-modal-header h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

.pin-modal-header p {
    color: #999999;
    font-size: 13px;
    margin: 0;
}

.pin-input-group {
    margin-bottom: 24px;
}

.pin-input-group label {
    display: block;
    color: #cccccc;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.pin-input-wrapper {
    position: relative;
}

.pin-input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: #1a1a1a;
    border: 1px solid #444444;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pin-input-wrapper input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    background: #222222;
}

.pin-input-wrapper input::placeholder {
    color: #666666;
    letter-spacing: 0;
    font-size: 14px;
    font-family: inherit;
}

.pin-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    transition: color 0.2s ease;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-toggle:hover {
    color: #999999;
}

.pin-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #666666;
    font-size: 11px;
}

.pin-hint i {
    font-size: 11px;
}

.pin-submit-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pin-submit-btn:hover {
    background: #e0e0e0;
}

.pin-submit-btn:active {
    background: #cccccc;
}

.pin-cancel-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #999999;
    border: 1px solid #444444;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pin-cancel-btn:hover {
    background: #1a1a1a;
    color: #cccccc;
    border-color: #666666;
}

.pin-cancel-btn:active {
    background: #333333;
}

@media (max-width: 480px) {
    .pin-modal-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .pin-modal-header {
        margin-bottom: 24px;
    }
    
    .pin-modal-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .pin-modal-icon i {
        font-size: 20px;
    }
    
    .pin-modal-header h2 {
        font-size: 18px;
    }
    
    .pin-modal-header p {
        font-size: 12px;
    }
    
    .pin-input-group label {
        font-size: 12px;
    }
    
    .pin-input-wrapper input {
        font-size: 16px;
        padding: 12px 40px 12px 12px;
        letter-spacing: 0;
    }
    
    .pin-submit-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .pin-cancel-btn {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .pin-modal-card {
        padding: 20px 16px;
    }
    
    .pin-modal-header h2 {
        font-size: 16px;
    }
    
    .pin-input-wrapper input {
        font-size: 15px;
        letter-spacing: 0;
    }
}

[data-theme="light"] .pin-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .pin-modal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .pin-modal-header h2 {
    color: #111827;
}

[data-theme="light"] .pin-modal-header p {
    color: #6b7280;
}

[data-theme="light"] .pin-modal-icon {
    background: #111827;
}

[data-theme="light"] .pin-modal-icon i {
    color: #ffffff;
}

[data-theme="light"] .pin-input-group label {
    color: #374151;
}

[data-theme="light"] .pin-input-wrapper input {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

[data-theme="light"] .pin-input-wrapper input:focus {
    border-color: #0d6efd;
    background: #ffffff;
}

[data-theme="light"] .pin-input-wrapper input::placeholder {
    color: #9ca3af;
}

[data-theme="light"] .pin-toggle {
    color: #9ca3af;
}

[data-theme="light"] .pin-toggle:hover {
    color: #6b7280;
}

[data-theme="light"] .pin-hint {
    color: #9ca3af;
}

[data-theme="light"] .pin-submit-btn {
    background: #111827;
    color: #ffffff;
    transition: background 0.2s ease;
}

[data-theme="light"] .pin-submit-btn:hover {
    background: #1f2937;
}

[data-theme="light"] .pin-submit-btn:active {
    background: #374151;
}

[data-theme="light"] .pin-cancel-btn {
    color: #6b7280;
    border-color: #d1d5db;
}

[data-theme="light"] .pin-cancel-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

[data-theme="light"] .pin-cancel-btn:active {
    background: #e5e7eb;
}