@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   SYNARII AUTH (LOGIN / SIGNUP) — Light Pastel Teal Theme
   Matches: core/css/themes.css + landing/style.css design tokens
   ───────────────────────────────────────────────────────────── */
:root {
    --teal:           #00BCD4;
    --teal-hover:     #00ACC1;
    --teal-dark:      #006064;
    --teal-soft:      #E0F7FA;
    --teal-border:    #B2EBF2;
    --purple:         #7c3aed;
    --purple-soft:    #f3eeff;
    --app-bg:         #f7f5fb;
    --text-primary:   #2c3e50;
    --text-secondary: #546e7a;
    --text-muted:     #94a3b8;
    --white:          #ffffff;
    --input-bg:       #f8fafc;
    --input-border:   #e2e8f0;
    --radius-card:    24px;
    --radius-input:   12px;
    --radius-btn:     50px;
}

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7f5fb 0%, #EBF9FD 55%, #f7f5fb 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    padding: 2rem 1.5rem;
    position: relative;
}

/* Soft teal orb — top left */
body::before {
    content: '';
    position: fixed;
    top: -15%; left: -10%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(0,188,212,0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb1 20s ease-in-out infinite;
}

/* Soft purple orb — bottom right */
body::after {
    content: '';
    position: fixed;
    bottom: -10%; right: -10%;
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(28px, 18px) scale(1.04); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(-22px, -15px) scale(1.06); }
}

/* ── Back Link ──────────────────────────────────────────────── */
.back-link {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    z-index: 10;
}

.back-link:hover { color: var(--teal); }
.back-link i { font-size: 0.8rem; }

/* ── Auth Card ──────────────────────────────────────────────── */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,188,212,0.18);
    box-shadow:
        0 20px 60px rgba(0,188,212,0.10),
        0 4px 24px rgba(0,0,0,0.06);
    padding: 2.5rem 2.2rem;
    animation: cardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo Bar ───────────────────────────────────────────────── */
.logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.logo-bar img {
    height: 36px;
    width: auto;
}

.logo-bar span {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Step visibility ────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; }

/* ── Step headings ──────────────────────────────────────────── */
.step-title {
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.step-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.55;
}

/* ── Industry Cards (Step 1) ────────────────────────────────── */
.industry-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.industry-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.22s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.industry-card:hover,
.industry-card:focus { outline: none; }

.industry-card.grooming:hover {
    border-color: var(--teal);
    background: #f0fdfe;
    box-shadow: 0 6px 24px rgba(0,188,212,0.16);
    transform: translateY(-2px);
}

.industry-card.beauty:hover {
    border-color: #ec4899;
    background: #fdf2f8;
    box-shadow: 0 6px 24px rgba(236,72,153,0.12);
    transform: translateY(-2px);
}

.industry-card-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-soft);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.22s;
}

.industry-card.beauty .industry-card-icon { background: #fce7f3; }

.industry-card-text { flex: 1; }

.industry-card-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.industry-card-text p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.industry-card-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.2s, color 0.2s;
}

.industry-card:hover .industry-card-arrow {
    transform: translateX(4px);
}

.industry-card.grooming:hover .industry-card-arrow { color: var(--teal); }
.industry-card.beauty:hover  .industry-card-arrow  { color: #ec4899; }

/* ── Industry Indicator (Step 3) ────────────────────────────── */
.industry-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--teal-soft);
    border: 1px solid var(--teal-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--teal-dark);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.change-industry {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    font-size: 0.78rem;
    transition: color 0.15s;
}

.change-industry:hover { color: var(--teal-hover); text-decoration: underline; }

/* ── Form ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-input);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,188,212,0.13);
    background: var(--white);
}

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

/* ── Sign In / Create Account button ────────────────────────── */
.btn-auth {
    width: 100%;
    padding: 13px;
    margin-top: 0.6rem;
    background: var(--teal);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(0,188,212,0.28);
    letter-spacing: 0.2px;
}

.btn-auth:hover {
    background: var(--teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(0,188,212,0.38);
}

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

/* ── Message boxes ──────────────────────────────────────────── */
.msg-box {
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
    display: none;
}

.msg-box.error {
    display: block;
    padding: 10px 14px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 10px;
}

.msg-box.success {
    display: block;
    padding: 10px 14px;
    background: var(--teal-soft);
    border: 1px solid var(--teal-border);
    color: var(--teal-dark);
    border-radius: 10px;
}

/* ── Auth footer links ──────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 1.3rem;
}

.auth-footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer a:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}