/* ============================================================================
   AUTH PAGES TAILWIND - CUSTOM STYLES
   Styles complexes non convertibles en Tailwind inline
   ============================================================================ */

/* === AUTH CARD GLASSMORPHISM (Dark Mode) === */
[data-theme="dark"] .auth-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

/* === SPINNER === */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

/* === STATUS MESSAGES === */
.auth-status {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.auth-status-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.auth-status-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.auth-status-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.auth-status-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-text {
    flex: 1;
}

/* === PASSWORD STRENGTH METER === */
.password-strength {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 8px;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.strength-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.strength-bar-container {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .strength-bar-container {
    background: rgba(255, 255, 255, 0.1);
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 2px;
}

.strength-criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.criterion {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.criterion.met {
    color: var(--success-color);
    font-weight: 500;
}

@media (max-width: 480px) {
    .strength-criteria {
        grid-template-columns: 1fr;
    }
}

/* === VERIFICATION COMPONENTS === */

/* Token Detected Box */
.verification-token-detected {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.token-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.token-info {
    flex: 1;
    min-width: 0;
}

.token-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.token-value {
    display: block;
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .token-value {
    background: rgba(255, 255, 255, 0.05);
}

/* Manual Verification Section */
.verification-manual-section {
    margin-top: 1.5rem;
}

.verification-manual-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.verification-manual-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Success Message */
.verification-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-in-out;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.success-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.success-progress {
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    height: 4px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    width: 0%;
    transition: width 3s linear;
}

/* Dev Info Box */
.verification-dev-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.dev-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dev-info-content {
    flex: 1;
    color: var(--text-secondary);
}

.dev-info-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.dev-info-link:hover {
    color: var(--primary-hover);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
