/* ═══════════════════════════════════════════════════════════
   Bottani Portal — Design System
   Dark mode premium avec glassmorphism
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Font ──────────────────────────────────────── */
/* Inter est chargé via <link> dans le HTML */

/* ─── CSS Custom Properties ────────────────────────────── */
:root {
    /* Couleurs de fond */
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #12121a;
    --bg-tertiary:   #1a1a2e;
    --bg-card:       rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-input:      rgba(255, 255, 255, 0.05);
    --bg-input-focus: rgba(255, 255, 255, 0.08);

    /* Bordures */
    --border-subtle:  rgba(255, 255, 255, 0.06);
    --border-light:   rgba(255, 255, 255, 0.10);
    --border-focus:   rgba(59, 130, 246, 0.5);

    /* Texte */
    --text-primary:   #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted:     #71717a;
    --text-inverse:   #0a0a0f;

    /* Accents */
    --accent-blue:    #3b82f6;
    --accent-purple:  #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --accent-glow:    0 0 30px rgba(59, 130, 246, 0.15);

    /* Sémantique */
    --danger:    #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --success:   #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning:   #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);

    /* Dimensions */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* Transitions */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);
    --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-purple);
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

/* ─── Animated Background ──────────────────────────────── */
.auth-page,
.dashboard-page,
.viewer-page {
    position: relative;
}

.auth-page::before,
.dashboard-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

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

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (Login, Verify, Setup)
   ═══════════════════════════════════════════════════════════ */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-elevated);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.setup-card {
    max-width: 480px;
}

/* Logo */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Steps indicator */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.step-number svg {
    width: 14px;
    height: 14px;
}

.step.active .step-number {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.step.completed .step-number {
    background: var(--success);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-secondary);
}

.step-divider {
    width: 40px;
    height: 2px;
    background: var(--border-light);
    border-radius: 1px;
    margin-bottom: 20px;
    transition: background var(--transition-normal);
}

.step-divider.completed {
    background: var(--success);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 48px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0 44px 0 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-toggle {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    border-radius: var(--radius-sm);
}

.input-toggle:hover {
    color: var(--text-secondary);
}

.input-toggle svg {
    width: 18px;
    height: 18px;
}

/* TOTP inputs */
.totp-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.totp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
    caret-color: var(--accent-blue);
}

.totp-input:focus {
    border-color: var(--accent-blue);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.totp-input.filled {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}

.totp-separator {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 2px;
    user-select: none;
}

/* TOTP Timer */
.totp-timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.totp-timer-svg {
    width: 60px;
    height: 60px;
}

.timer-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    fill: var(--text-primary);
}

.timer-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-progress {
    transition: stroke-dashoffset 1s linear;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-error svg {
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.alert-warning svg {
    color: var(--warning);
}

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

/* Locked state */
.auth-locked {
    text-align: center;
    padding: 24px 0;
}

.locked-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    background: var(--danger-bg);
    border-radius: 50%;
}

.locked-icon svg {
    width: 28px;
    height: 28px;
}

.locked-message {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    color: white;
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-full {
    width: 100%;
    height: 48px;
    font-size: 0.9375rem;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

/* Auth footer & back link */
.auth-footer {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.auth-back svg {
    width: 16px;
    height: 16px;
}

.auth-back:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   SETUP PAGE
   ═══════════════════════════════════════════════════════════ */

.setup-totp {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-instructions p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.qr-code {
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    border-radius: var(--radius-md);
}

.secret-manual {
    text-align: center;
}

.secret-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.secret-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 16px;
}

.secret-value code {
    font-size: 0.85rem;
    letter-spacing: 2px;
    background: none;
    padding: 0;
    color: var(--accent-blue);
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
}

.btn-copy:hover {
    color: var(--accent-blue);
}

.btn-copy.copied {
    color: var(--success);
}

.btn-copy svg {
    width: 16px;
    height: 16px;
}

/* Setup complete */
.setup-complete {
    text-align: center;
    padding: 8px 0;
}

.complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.complete-icon svg {
    width: 100%;
    height: 100%;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.complete-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--success);
}

.complete-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all var(--transition-normal);
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 
        var(--shadow-elevated),
        0 0 40px rgba(var(--card-color), 0.05);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(60px);
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.service-card:hover .card-glow {
    opacity: 0.08;
}

/* Service icon */
.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

/* Service info */
.service-info {
    flex: 1;
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Service status */
.service-status {
    position: absolute;
    top: 20px;
    right: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.status-dot.checking {
    background: var(--text-muted);
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Service actions */
.service-actions {
    display: flex;
    gap: 10px;
}

.btn-service-open,
.btn-service-embed {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-service-open svg,
.btn-service-embed svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-service-open {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-service-open:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.btn-service-embed {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-service-embed:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   SERVICE VIEWER
   ═══════════════════════════════════════════════════════════ */

.viewer-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 16px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    z-index: 10;
}

.viewer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.viewer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.viewer-back,
.viewer-external {
    font-size: 0.8125rem;
    padding: 6px 12px;
}

.viewer-back span,
.viewer-external span {
    display: none;
}

@media (min-width: 640px) {
    .viewer-back span,
    .viewer-external span {
        display: inline;
    }
}

.viewer-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-secondary);
}

.viewer-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 24px;
}

.fallback-card {
    text-align: center;
    max-width: 400px;
}

.fallback-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.fallback-icon svg {
    width: 100%;
    height: 100%;
}

.fallback-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.fallback-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.dashboard-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .logo-text {
        font-size: 1.25rem;
        letter-spacing: 4px;
    }

    .totp-input {
        width: 40px;
        height: 48px;
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .service-actions {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .totp-input {
        width: 36px;
        height: 44px;
        font-size: 1rem;
    }

    .totp-inputs {
        gap: 4px;
    }
}

@media (min-width: 768px) {
    .auth-card {
        padding: 48px 44px;
    }

    .dashboard-main {
        padding: 64px 32px;
    }
}
