/* ==========================================================================
   PUBLIC PAGES — V2 (clean rewrite)
   Direction: simple, confident — full Jeremias-blue hero + white catalog
   Brand: #004f9f · #ffee00 · #1c1c1b
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #004f9f;
    --primary-dark: #003d7a;
    --primary-darker: #002a55;
    --accent: #ffee00;
    --accent-dark: #d4c500;
    --accent-warm: #ffd700;
    --brand-black: #1c1c1b;

    --success: #0e9f6e;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
    --error: #d92020;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --info-bg: #eff5fb;
    --info-border: #c7d8ec;

    --text: #1c1c1b;
    --text-light: #5a5d65;
    --text-muted: #8b8e96;
    --surface: #ffffff;
    --surface-alt: #f5f6f8;
    --border: #d8dde4;
    --border-strong: #b8bfc9;
    --border-light: #ecf0f4;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 80px;

    --radius-sm: 3px;
    --radius: 6px;
    --radius-lg: 10px;

    --shadow-xs: 0 1px 2px rgba(0, 35, 80, 0.05);
    --shadow-sm: 0 1px 4px rgba(0, 35, 80, 0.06);
    --shadow:    0 4px 12px -2px rgba(0, 35, 80, 0.08);
    --shadow-md: 0 12px 28px -8px rgba(0, 35, 80, 0.12);
    --shadow-lg: 0 24px 48px -16px rgba(0, 35, 80, 0.18);

    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.22s var(--ease);

    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: var(--font);
    --font-heading: var(--font);
    --font-body: var(--font);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

::selection { background: var(--accent); color: var(--brand-black); }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Background ---------- */
.public-bg {
    background: var(--surface-alt);
    min-height: 100vh;
}

.public-bg--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-lg);
}

/* ---------- Container ---------- */
.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.public-container--narrow { max-width: 800px; }

/* ---------- Language Switcher ---------- */
.lang-switcher {
    position: fixed;
    top: var(--space-md);
    right: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
    box-shadow: var(--shadow-sm);
    z-index: 150;
    display: flex;
    gap: 0;
}

.lang-switcher__option {
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 3px;
    transition: all var(--transition);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.lang-switcher__option.active {
    background: var(--primary);
    color: white;
}

.lang-switcher__option:not(.active):hover {
    background: var(--surface-alt);
    color: var(--text);
}

/* ==========================================================================
   HERO — full Jeremias-blue (signature page moment)
   ========================================================================== */
.hero {
    background: var(--primary);
    color: white;
    padding: clamp(80px, 12vw, 140px) 0 clamp(72px, 11vw, 130px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Yellow signature mark — bottom-left corner */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 6px;
    background: var(--accent);
}

/* Subtle radial highlight — adds depth to flat blue */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

/* Logo — all white, no badge */
.hero-logo {
    display: inline-block;
    margin-bottom: var(--space-xl);
    transition: opacity var(--transition);
}

.hero-logo img {
    height: 88px;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.6s var(--ease-out);
}

.hero-logo:hover img { transform: translateY(-2px); }

/* ---------- Subtle chimney smoke (atmosphere) ---------- */
.hero-smoke {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.smoke-trail {
    position: absolute;
    bottom: -120px;
    width: 80px;
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 65%);
    filter: blur(28px);
    animation: smokeRise 22s ease-in-out infinite;
    will-change: transform, opacity;
}

.smoke-trail:nth-child(1) { left: 8%;  width: 70px;  height: 280px; animation-delay:   0s;  animation-duration: 24s; }
.smoke-trail:nth-child(2) { left: 32%; width: 100px; height: 360px; animation-delay:  -8s;  animation-duration: 28s; }
.smoke-trail:nth-child(3) { left: 58%; width: 80px;  height: 320px; animation-delay: -14s;  animation-duration: 26s; }
.smoke-trail:nth-child(4) { left: 82%; width: 90px;  height: 340px; animation-delay: -19s;  animation-duration: 30s; }

@keyframes smokeRise {
    0%   { transform: translateY(20%)  translateX(0)    scale(0.8); opacity: 0; }
    15%  { opacity: 0.45; }
    50%  { transform: translateY(-40%) translateX(18px) scale(1.2); opacity: 0.35; }
    85%  { opacity: 0.15; }
    100% { transform: translateY(-90%) translateX(-12px) scale(1.5); opacity: 0; }
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 auto var(--space-xl);
    color: white;
    max-width: 18ch;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    line-height: 1.55;
    font-weight: 400;
}

.hero .cta-group {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   PRODUCTS / TOOLS GRID — clean white section
   ========================================================================== */
.tools-section {
    padding: clamp(64px, 9vw, 100px) 0;
    background: var(--surface);
}

.tools-title {
    font-family: var(--font);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.tool-card {
    background: var(--surface);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s var(--ease);
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tool-card:hover::after { transform: scaleX(1); }

.tool-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card__icon img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out);
}

.tool-card:hover .tool-card__icon img {
    transform: scale(1.06);
}

.tool-card__name {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 3px;
    letter-spacing: -0.005em;
}

.tool-card__category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   PUBLIC TOPBAR — slim blue brand strip (login / register / password reset / privacy)
   ========================================================================== */
.public-topbar {
    background: var(--primary);
    padding: 22px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.public-topbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 96px;
    height: 4px;
    background: var(--accent);
}

.public-topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
    pointer-events: none;
}

.public-topbar > * { position: relative; z-index: 1; }

.public-topbar__logo {
    display: inline-block;
    transition: opacity var(--transition);
}

.public-topbar__logo img {
    height: 44px;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.5s var(--ease-out);
}

.public-topbar__logo:hover img { transform: translateY(-1px); }

@media (max-width: 640px) {
    .public-topbar { padding: 18px 0; }
    .public-topbar__logo img { height: 36px; }
}

/* Wrapper for centered content below topbar */
.public-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-2xl) var(--space-lg);
}

/* ==========================================================================
   PUBLIC CARD — login / register / privacy
   ========================================================================== */
.public-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 760px;
    position: relative;
    overflow: hidden;
    margin-block: var(--space-xl);
}

.public-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
}

.public-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 64px;
    height: 4px;
    background: var(--accent);
}

.public-card__body { padding: var(--space-2xl); }

/* ---------- Card header ---------- */
.public-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.public-logo { margin-bottom: var(--space-md); }
.public-logo img { height: 56px; margin: 0 auto; transition: opacity var(--transition); }
.public-logo:hover img { opacity: 0.85; }

.public-title {
    font-family: var(--font);
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.public-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Accent underline ---------- */
.accent-line { display: inline-block; position: relative; }
.accent-line::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 40px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==========================================================================
   MESSAGES / ALERTS
   ========================================================================== */
.message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.message i { flex-shrink: 0; margin-top: 1px; }
.message-error   { background: var(--error-bg);   color: var(--error);   border-left: 3px solid var(--error); }
.message-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.message-info    { background: var(--info-bg);    color: var(--primary); border-left: 3px solid var(--primary); }
.message-warning { background: var(--warning-bg); color: #92400e;        border-left: 3px solid var(--warning); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 140px;
    line-height: 1;
    will-change: transform;
}
.btn i { font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Blue primary (default) */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px -6px rgba(0, 79, 159, 0.45);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 10px 22px -6px rgba(0, 79, 159, 0.55);
    transform: translateY(-1px);
}

/* Yellow signature CTA — used in dark hero */
.btn-power {
    background: var(--accent);
    color: var(--brand-black);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.25);
}
.btn-power:hover:not(:disabled) {
    background: var(--accent-warm);
    color: var(--brand-black);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* Outline white CTA — secondary in dark hero */
.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover:not(:disabled) {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-1px);
}

/* Secondary (for white sections) */
.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

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

.btn--lg {
    padding: 16px 32px;
    font-size: 15px;
    min-width: 180px;
    border-radius: var(--radius);
}

.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn:active:not(:disabled) {
    transform: scale(0.98);
    transition-duration: 0.08s;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
    display: block;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.form-label .required { color: var(--error); margin-left: 2px; }

.input-wrapper { position: relative; }

.form-input,
.form-select {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: var(--font);
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: all var(--transition);
}

.form-input::placeholder,
.form-select::placeholder { color: var(--text-muted); font-weight: 400; }

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.14);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus) { border-color: var(--border-strong); }

.form-input[readonly] {
    background: var(--surface-alt);
    color: var(--primary);
    font-weight: 700;
    cursor: not-allowed;
    letter-spacing: 0.02em;
}

.form-input--with-icon { padding-right: 48px; }

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition);
}

.form-input:focus ~ .input-icon,
.form-input:focus + .input-icon { color: var(--primary); }

.form-help { font-size: 12px; color: var(--text-light); margin-top: var(--space-xs); }

/* Form sections (register) */
.form-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.section-title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-lg);
    padding-left: 14px;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.section-title i { color: var(--primary); font-size: 0.95rem; }

.form-grid { display: grid; gap: var(--space-lg); }
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Password */
.password-toggle {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--text-light); transition: color var(--transition);
}
.password-toggle:hover { color: var(--primary); }

.password-strength { margin-top: var(--space-sm); }
.strength-bar {
    height: 4px; background: var(--border-light);
    border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.strength-fill { height: 100%; transition: width var(--transition), background var(--transition); width: 0; }
.strength-text { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* ==========================================================================
   CAPTCHA
   ========================================================================== */
.captcha-section {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.captcha-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-md);
    display: flex; align-items: center; gap: 8px;
}
.captcha-providers { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.captcha-provider {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.captcha-provider.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.1);
}
.captcha-option { display: block; padding: var(--space-md); cursor: pointer; transition: background var(--transition); }
.captcha-option input[type="radio"] { display: none; }
.option-header { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-sm); }
.option-title { font-weight: 700; color: var(--text); flex: 1; }
.option-badge {
    padding: 3px 8px;
    background: var(--accent);
    color: var(--brand-black);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.option-description { font-size: 14px; color: var(--text-light); }
.captcha-content { padding: var(--space-md); border-top: 1px solid var(--border); background: var(--surface); }
.math-captcha { text-align: center; }
.math-question {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: 0.04em;
}
.h-captcha { display: flex; justify-content: center; margin: var(--space-md) 0; }

/* Login method indicator */
.login-method-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.login-method-indicator.visible { display: flex; }
.login-method-indicator .method-icon { font-size: 12px; color: var(--primary); }
.login-method-indicator .method-example { font-weight: 700; color: var(--primary); }

/* ==========================================================================
   STEP INDICATOR
   ========================================================================== */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    gap: 0;
}
.step {
    display: flex; align-items: center; gap: 0;
    padding: 0; background: transparent; border: none;
    font-size: 0; color: transparent; position: relative;
}
.step i { display: none; }
.step::before {
    content: ''; display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s ease;
}
.step:not(:last-child)::after {
    content: ''; display: block;
    width: 40px; height: 2px;
    background: var(--border);
    margin: 0 8px;
}
.step.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.18);
}
.step.completed::before { background: var(--success); }
.step.completed::after { background: var(--success); }

/* ==========================================================================
   CHOICE OPTIONS
   ========================================================================== */
.choice-options { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.choice-option {
    display: block;
    padding: var(--space-md);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.choice-option:hover { border-color: var(--primary); background: var(--surface-alt); }
.choice-option input[type="radio"] { display: none; }
.choice-option input[type="radio"]:checked + .option-content { color: var(--primary); }
.choice-option input[type="radio"]:checked + .option-content::before {
    content: '\2713';
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--success);
    font-weight: bold;
    font-size: 18px;
}
.option-content { display: flex; align-items: center; gap: 12px; position: relative; }
.option-icon { font-size: 20px; color: var(--primary); }
.option-text { flex: 1; }

/* ==========================================================================
   PASSWORD REQUIREMENTS
   ========================================================================== */
.password-requirements {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}
.requirements-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}
.requirement {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-light);
    margin-bottom: 4px;
}
.requirement.met { color: var(--success); }
.requirement.met .req-icon { color: var(--success); }
.req-icon { font-size: 12px; color: var(--text-light); }

/* ==========================================================================
   SUBMIT BUTTON (full-width)
   ========================================================================== */
.submit-button {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 6px 16px -6px rgba(0, 79, 159, 0.45);
}
.submit-button:hover:not(:disabled) {
    background: var(--primary-dark);
    box-shadow: 0 10px 22px -6px rgba(0, 79, 159, 0.55);
    transform: translateY(-1px);
}
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.submit-button:active:not(:disabled) { transform: scale(0.98); transition-duration: 0.08s; }

/* ==========================================================================
   SUCCESS CONTENT
   ========================================================================== */
.success-content { text-align: center; }
.success-icon { text-align: center; margin-bottom: var(--space-lg); }
.success-icon i { font-size: 48px; color: var(--success); }
.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}
.success-message { color: var(--text-light); margin-bottom: var(--space-xl); line-height: 1.6; }
.success-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   PAGE FOOTER (login/register)
   ========================================================================== */
.page-footer {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-lg);
}

.footer-links {
    display: flex; justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color var(--transition);
}
.footer-link:hover { color: var(--primary); }
.footer-link i { color: var(--text-muted); font-size: 12px; transition: color var(--transition); }
.footer-link:hover i { color: var(--accent-warm); }

.footer-version {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   PUBLIC FOOTER
   ========================================================================== */
.public-footer {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    position: relative;
}

.public-footer::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 96px;
    height: 3px;
    background: var(--accent);
}

.public-footer__company {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-black);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.005em;
}
.public-footer__text { color: var(--text-light); font-size: 0.9rem; margin-bottom: var(--space-md); }
.public-footer__links { margin-bottom: var(--space-md); }
.public-footer__links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.public-footer__links a:hover { color: var(--primary); }
.public-footer__version {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-separator { color: var(--border); }

/* ==========================================================================
   LOGOUT TOAST
   ========================================================================== */
.logout-success {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
    border-left: 3px solid var(--success);
    border-radius: var(--radius);
    padding: 14px 24px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: slideInDown 0.4s var(--ease), fadeOutUp 0.4s var(--ease) 4s forwards;
    min-width: 280px;
    justify-content: center;
}
.logout-success .close-btn {
    background: none; border: none;
    color: var(--success);
    cursor: pointer; font-size: 16px;
    margin-left: 8px; padding: 4px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.logout-success .close-btn:hover { background: rgba(14, 159, 110, 0.12); }

/* ==========================================================================
   PRIVACY POLICY
   ========================================================================== */
.privacy-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: var(--space-2xl);
}
.privacy-content h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin: var(--space-xl) 0 var(--space-md);
    display: flex; align-items: center; gap: 10px;
    letter-spacing: -0.015em;
}
.privacy-content h2 i { color: var(--primary); font-size: 1rem; }
.privacy-content p,
.privacy-content li { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.privacy-content ul { padding-left: var(--space-lg); margin: var(--space-sm) 0 var(--space-md); }
.privacy-content li { margin-bottom: var(--space-xs); }
.privacy-content table {
    width: 100%; border-collapse: collapse;
    margin: var(--space-md) 0; font-size: 0.9rem;
}
.privacy-content th, .privacy-content td {
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.privacy-content th {
    background: var(--surface-alt);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-box {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) 0;
}
.info-box p { color: var(--primary-dark); font-size: 0.9rem; }

.contact-box {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

/* ==========================================================================
   ANIMATIONS — minimal, purposeful
   ========================================================================== */
@keyframes slideInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fadeOutUp {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance — staggered fade-up for hero children */
.hero > .public-container > * {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.7s var(--ease-out) forwards;
}
.hero > .public-container > *:nth-child(1) { animation-delay: 0.05s; }
.hero > .public-container > *:nth-child(2) { animation-delay: 0.18s; }
.hero > .public-container > *:nth-child(3) { animation-delay: 0.30s; }
.hero > .public-container > *:nth-child(4) { animation-delay: 0.42s; }

/* Tool card stagger on initial load */
.animate-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
    opacity: 0;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.40s; }

/* Public card entrance (login/register) */
.public-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s var(--ease-out) 0.05s forwards;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .public-container { padding: 0 var(--space-md); }
    .hero { padding: clamp(64px, 12vw, 100px) 0; }
    .hero-logo img { height: 44px; }
    .hero-logo { padding: 12px 18px; }
    .hero .cta-group { flex-direction: column; align-items: stretch; }
    .hero .btn--lg { width: 100%; }
    .tools-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-md); }
    .tool-card { padding: var(--space-lg) var(--space-md); }
    .tool-card__icon { width: 64px; height: 64px; }
    .tool-card__icon img { max-width: 56px; max-height: 56px; }
    .logout-success {
        top: 60px;
        left: var(--space-md);
        right: var(--space-md);
        transform: none;
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .public-card__body { padding: var(--space-xl) var(--space-lg); }
    .form-section { padding: var(--space-lg); }
    .lang-switcher { top: var(--space-sm); right: var(--space-sm); }
    .footer-links { flex-direction: column; gap: var(--space-sm); }
    .privacy-content { padding: var(--space-lg); }
    .login-method-indicator { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
    .step:not(:last-child)::after { width: 24px; }
    .success-actions { flex-direction: column; align-items: stretch; }
    .choice-option { padding: var(--space-sm) var(--space-md); }
}

/* ==========================================================================
   FOCUS STATES
   ========================================================================== */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.lang-switcher__option:focus-visible,
.captcha-option:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ==========================================================================
   SKIP LINK + REDUCED MOTION
   ========================================================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 999;
    background: var(--brand-black);
    color: var(--accent);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
}
.skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero > .public-container > *,
    .animate-in,
    .public-card { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
