/*
 * Classic style of the user front, the one of the landing page: white and sand, deep green, serif titles, no glass.
 * Linked after glass.css and scoped to <html data-style="classic">: it only overrides what makes the glass look,
 * the rest of glass.css (preferences, notifications, errors…) stays in use.
 */

/* ========== Tokens ========== */
html[data-style="classic"] {
    --pp-bg: #ffffff;
    --pp-bg-soft: #f6f3ee;
    --pp-text: #17212b;
    --pp-text-2: #55626f;
    --pp-text-3: #6f7a85;
    --pp-border: #e4ded4;
    --pp-border-strong: #c9c1b3;
    --pp-accent: #14504a;
    --pp-accent-bg: #e7f0ee;
    --pp-on-accent: #ffffff;
    --pp-danger: #a32d2d;
    --pp-success: #2f6b2a;
    --pp-success-bg: #e8f2e4;

    --pp-glass: #ffffff;
    --pp-glass-inner: #ffffff;
    --pp-veil: #fcfbf9;
    --pp-sheet: #ffffff;
    --pp-rim: transparent;
    --pp-shadow: 0 2px 12px rgba(23, 33, 43, .08);
    --pp-gradient: linear-gradient(var(--pp-accent), var(--pp-accent));

    background: #f6f3ee;
}

html[data-style="classic"] body[data-theme="dark"] {
    --pp-bg: #1c2224;
    --pp-bg-soft: #252d2f;
    --pp-text: #f1eee8;
    --pp-text-2: #bcc3c2;
    --pp-text-3: #98a2a1;
    --pp-border: #333d3f;
    --pp-border-strong: #4d595b;
    --pp-accent: #7fc4b8;
    --pp-accent-bg: #1f3a37;
    --pp-on-accent: #0b2824;
    --pp-danger: #f09595;
    --pp-success: #a3cf8a;
    --pp-success-bg: #263d22;

    --pp-glass: #1c2224;
    --pp-glass-inner: #1c2224;
    --pp-veil: #222a2c;
    --pp-sheet: #1c2224;
    --pp-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --pp-gradient: linear-gradient(var(--pp-accent), var(--pp-accent));
}
html[data-style="classic"]:has(body[data-theme="dark"]) { background: #121617; }

html[data-style="classic"] body[data-theme="dark"] .pp-tone-success { --t-bg: #263d22; --t-fg: #b9dda4; }
html[data-style="classic"] body[data-theme="dark"] .pp-tone-accent  { --t-bg: #1f3a37; --t-fg: #9bd5ca; }
html[data-style="classic"] body[data-theme="dark"] .pp-tone-pro     { --t-bg: #322d52; --t-fg: #cecbf6; }
html[data-style="classic"] body[data-theme="dark"] .pp-tone-warning { --t-bg: #4a3314; --t-fg: #f5cb8a; }
html[data-style="classic"] body[data-theme="dark"] .pp-tone-danger  { --t-bg: #542323; --t-fg: #f7c1c1; }
html[data-style="classic"] body[data-theme="dark"] .pp-tone-neutral { --t-bg: #333b3d; --t-fg: #d0d6d5; }

/* ========== Page and typography ========== */
html[data-style="classic"] body { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
html[data-style="classic"] body::before, html[data-style="classic"] body::after { display: none; }
html[data-style="classic"] :is(h1, h2, .pp-title, .pp-auth-title, .pp-auth-headline, .pp-auth-brand-name, .pp-legal-title) {
    font-family: Fraunces, Georgia, serif; font-weight: 600;
}

/* ========== Containers: flat, thin border, small radius ========== */
html[data-style="classic"] :is(.pp-app, .pp-dash, .pp-auth) {
    -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 10px;
}
html[data-style="classic"] :is(.pp-sheet-backdrop, .pp-modal-backdrop) {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 33, 43, .5); border-radius: 10px;
}
html[data-style="classic"] :is(.pp-sheet, .pp-modal, .pp-card, .pp-guide, .pp-lead, .pp-consent, .pp-block, .pp-legal,
    .pp-failure, .pp-notif-panel, .pp-notif-item, .pp-accent-choice, .pp-support-card, .pp-support-box,
    .pp-support-message) { border-radius: 8px; }
html[data-style="classic"] :is(.pp-field, .pp-prefs-select, .pp-phone-prefix) { border-radius: 6px; }
html[data-style="classic"] .pp-passkey { border-radius: 6px; }
html[data-style="classic"] .pp-card:hover { transform: none; }
html[data-style="classic"] .pp-card--on { box-shadow: 0 0 0 1px var(--pp-accent); }
html[data-style="classic"] .pp-guide { border-color: var(--pp-border); }
html[data-style="classic"] .pp-guide::before { display: none; }

/* ========== Buttons: no glow, no shimmer ========== */
html[data-style="classic"] :is(.pp-cta, .pp-pill, .pp-link-button, .pp-chip, .pp-auth-secondary, .pp-failure-button) {
    border-radius: 6px;
}
html[data-style="classic"] .pp-cta { font-weight: 700; }
html[data-style="classic"] .pp-cta:not(:disabled):hover { transform: none; box-shadow: none; filter: brightness(.9); }
html[data-style="classic"] .pp-cta::after { display: none; }
html[data-style="classic"] :is(.pp-pill--on, .pp-pill--on:hover, .pp-progress-bar, .pp-guide-bar > span,
    .pp-guide-step--done .pp-guide-mark, .pp-auth-logo) { box-shadow: none; }
html[data-style="classic"] .pp-guide-step--current .pp-guide-mark { animation: none; }

/* ========== Login: green brand panel ========== */
html[data-style="classic"] .pp-auth-side {
    --pp-text: #ffffff;
    --pp-text-2: #d9e8e5;
    --pp-text-3: #b7d0cb;
    --pp-accent: #ffffff;
    --pp-accent-bg: rgba(255, 255, 255, .14);
    --pp-border: rgba(255, 255, 255, .22);
    background: #14504a; color: #ffffff; border-right: 0;
}
html[data-style="classic"] .pp-auth-logo { background: #c8642d; color: #ffffff; }
html[data-style="classic"] .pp-auth-logo.pp-auth-logo--image { background: transparent; }

/* The accent colour only exists in the glass style. */
html[data-style="classic"] .pp-prefs-group--accent { display: none; }
