/* Professionals area — auth pages + start page (professionals/*). */
:root {
    --pro-ink: #0b1020;
    --pro-text: #334155;
    --pro-muted: #64748b;
    --pro-line: #e2e8f0;
    --pro-soft: #f6f7fb;
    --pro-surface: #ffffff;
    --pro-primary: #5b4bff;
    --pro-primary-2: #8b5cf6;
    --pro-accent: #14b8a6;
    --pro-danger: #e11d48;
    --pro-ok: #059669;
    --pro-radius: 14px;
    --pro-focus: 0 0 0 4px rgba(91, 75, 255, 0.18);
}
@media (prefers-color-scheme: dark) {
    :root {
        --pro-ink: #f1f5f9;
        --pro-text: #cbd5e1;
        --pro-muted: #94a3b8;
        --pro-line: #253049;
        --pro-soft: #121a2e;
        --pro-surface: #0b1222;
        --pro-focus: 0 0 0 4px rgba(139, 92, 246, 0.3);
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
.pro-auth-body {
    margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--pro-text); background: var(--pro-surface); -webkit-font-smoothing: antialiased;
}
.pro-auth { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 992px) {
    .pro-auth { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
}

/* ---------- Brand panel ---------- */
.pro-aside { display: none; position: relative; overflow: hidden; color: #fff; background: #0b0a24; }
@media (min-width: 992px) { .pro-aside { display: block; } }
.pro-aside-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: proFloat 16s ease-in-out infinite alternate; }
.pro-aside-glow--a { width: 520px; height: 520px; left: -140px; top: -120px; background: #5b4bff; }
.pro-aside-glow--b { width: 420px; height: 420px; right: -120px; top: 30%; background: #c026d3; animation-delay: -5s; }
.pro-aside-glow--c { width: 380px; height: 380px; left: 20%; bottom: -160px; background: #0d9488; animation-delay: -9s; }
@keyframes proFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .pro-aside-glow { animation: none; } }
.pro-aside::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 22px 22px;
}
.pro-aside-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: 2.75rem 3.25rem; }
.pro-aside-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.pro-aside-badge { padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.78rem; }

/* EventFlow logo — same compass animation as the home nav-bar (home/assets/css/style.css .logo-icon) */
.pro-logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.pro-logo img { height: 30px; width: auto; }
.pro-logo-icon {
    flex: 0 0 auto; color: #c1ff72; filter: drop-shadow(0 0 8px rgba(193, 255, 114, 0.3));
    animation: proLogoRotate 20s linear infinite;
}
a:hover .pro-logo-icon { animation-duration: 2s; filter: drop-shadow(0 0 12px rgba(193, 255, 114, 0.3)); }
@keyframes proLogoRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pro-logo-icon { animation: none; } }
.pro-aside-copy h2 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1.75rem; max-width: 17ch; }
.pro-aside-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.pro-aside-points li { display: flex; align-items: center; gap: 0.85rem; font-size: 1rem; color: rgba(255, 255, 255, 0.88); }
.pro-point-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }

.pro-preview-card {
    max-width: 380px; padding: 1.1rem 1.2rem; border-radius: 20px; color: #fff;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
}
.pro-preview-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pro-preview-head strong { display: block; font-size: 1rem; }
.pro-preview-head small { color: rgba(255, 255, 255, 0.72); }
.pro-preview-avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.pro-preview-status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: rgba(20, 184, 166, 0.22); color: #99f6e4; }
.pro-pulse { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); animation: proPulse 1.8s infinite; }
@keyframes proPulse { 70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
.pro-preview-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0; }
.pro-preview-chips span { padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; background: rgba(255, 255, 255, 0.14); }
.pro-preview-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }
.pro-preview-stars { color: #fbbf24; letter-spacing: 1px; }

/* ---------- Form panel ---------- */
.pro-panel { display: flex; flex-direction: column; min-height: 100vh; background: var(--pro-surface); }
.pro-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem); }
.pro-topbar-brand { text-decoration: none; }
@media (min-width: 992px) { .pro-topbar-brand { visibility: hidden; } }
/* Mobile: the brand panel is hidden → dark brand band (glows + headline + chips) and the form as a bottom sheet. */
.pro-mhero { display: none; }
@media (max-width: 991.98px) {
    .pro-panel { background: #0b0a24; position: relative; overflow: hidden; }
    .pro-topbar { position: relative; z-index: 2; background: transparent; }
    .pro-topbar .pro-lang { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
    .pro-topbar .pro-lang select { color: #fff; }
    .pro-mhero { display: block; position: relative; padding: 0.25rem 1.25rem 2.75rem; color: #fff; }
    .pro-mhero .pro-aside-glow { filter: blur(55px); opacity: 0.7; }
    .pro-mhero .pro-aside-glow--a { width: 300px; height: 300px; left: -110px; top: -150px; }
    .pro-mhero .pro-aside-glow--b { width: 260px; height: 260px; right: -110px; top: -40px; }
    .pro-mhero-inner { position: relative; z-index: 1; }
    .pro-mhero-title { margin: 0.75rem 0 1rem; font-size: 1.45rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
    .pro-mhero-chips { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
    .pro-mhero-chips::-webkit-scrollbar { display: none; }
    .pro-mhero-chips > span {
        flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border-radius: 999px;
        font-size: 0.8rem; font-weight: 600; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px);
    }
    .pro-mhero-chips i { color: #c1ff72; }
    .pro-panel-body {
        position: relative; z-index: 2; align-items: flex-start; margin-top: -1.5rem; padding-top: 1.75rem;
        background: var(--pro-surface); border-radius: 28px 28px 0 0; box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.55);
    }
    .pro-form-wrap h1 { font-size: 1.6rem; margin-top: 0.75rem; }
    .pro-lead { margin-bottom: 1.35rem; }
}

/* Google sign-in (brand guidelines: white button, colored "G") */
.pro-google {
    width: 100%; height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
    border-radius: var(--pro-radius); border: 1.5px solid var(--pro-line); background: #fff; color: #1f1f1f;
    font-weight: 600; font-size: 0.97rem; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pro-google:hover { color: #1f1f1f; border-color: #c7cdd8; box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.45); transform: translateY(-1px); }
.pro-google:focus-visible { outline: none; box-shadow: var(--pro-focus); }
.pro-google-terms { margin: 0.6rem 0 0; font-size: 0.76rem; color: var(--pro-muted); text-align: center; line-height: 1.45; }
.pro-google-terms a { color: var(--pro-primary); font-weight: 600; }
.pro-divider { display: flex; align-items: center; gap: 0.85rem; margin: 1.25rem 0; font-size: 0.8rem; color: var(--pro-muted); }
.pro-divider::before, .pro-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--pro-line); }
.pro-lang { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.4rem 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--pro-line); color: var(--pro-muted); font-size: 0.85rem; }
.pro-lang select { border: 0; background: transparent; color: var(--pro-ink); font: inherit; font-weight: 600; outline: none; cursor: pointer; }
.pro-lang select option { color: #0b1020; }
.pro-panel-body { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 3rem; }
.pro-form-wrap { width: 100%; max-width: 430px; animation: proIn 0.45s ease both; }
@keyframes proIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pro-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--pro-primary); background: rgba(91, 75, 255, 0.1); }
.pro-form-wrap h1 { margin: 1rem 0 0.5rem; font-size: clamp(1.75rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.03em; color: var(--pro-ink); line-height: 1.15; }
.pro-lead { margin: 0 0 1.75rem; color: var(--pro-muted); font-size: 0.98rem; line-height: 1.55; }

.pro-alert { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; margin-bottom: 1.25rem; border-radius: var(--pro-radius); font-size: 0.9rem; line-height: 1.45; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.pro-alert.is-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.pro-alert.is-info { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.pro-alert i { margin-top: 0.15rem; }
.pro-alert a { color: inherit; font-weight: 700; }

.pro-field { margin-bottom: 1.1rem; }
.pro-field > label, .pro-field-head label { display: block; margin-bottom: 0.4rem; font-size: 0.86rem; font-weight: 600; color: var(--pro-ink); }
.pro-field-head { display: flex; justify-content: space-between; align-items: baseline; }
.pro-field-head a { font-size: 0.82rem; font-weight: 600; color: var(--pro-primary); text-decoration: none; }
.pro-input { position: relative; display: flex; align-items: center; }
.pro-input > i { position: absolute; left: 1rem; color: var(--pro-muted); font-size: 0.95rem; pointer-events: none; transition: color 0.15s ease; }
.pro-input input {
    width: 100%; height: 52px; padding: 0 1rem 0 2.75rem; border-radius: var(--pro-radius);
    border: 1.5px solid var(--pro-line); background: var(--pro-soft); color: var(--pro-ink); font: inherit; font-size: 0.98rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pro-input input:hover { border-color: #cbd5e1; }
.pro-input input:focus { outline: none; border-color: var(--pro-primary); background: var(--pro-surface); box-shadow: var(--pro-focus); }
.pro-input:focus-within > i { color: var(--pro-primary); }
.pro-input input.is-invalid { border-color: var(--pro-danger); box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
.pro-input .pro-eye { position: absolute; right: 0.5rem; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--pro-muted); cursor: pointer; }
.pro-input .pro-eye:hover { color: var(--pro-ink); background: rgba(100, 116, 139, 0.1); }
.pro-input input[type="password"], .pro-input input.has-eye { padding-right: 3rem; }
.pro-field-error { display: block; min-height: 0; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 500; color: var(--pro-danger); }
.pro-field-error:empty { display: none; }
.pro-suggest { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.45rem; padding: 0.3rem 0.7rem; border: 0; border-radius: 999px; font-size: 0.8rem; color: var(--pro-primary); background: rgba(91, 75, 255, 0.1); cursor: pointer; }
.pro-suggest strong { font-weight: 700; }

/* Password strength */
.pro-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-top: 0.6rem; }
.pro-meter span { height: 5px; border-radius: 999px; background: var(--pro-line); transition: background 0.2s ease; }
.pro-meter[data-score="1"] span:nth-child(-n+1) { background: #f43f5e; }
.pro-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pro-meter[data-score="3"] span:nth-child(-n+3) { background: #22c55e; }
.pro-meter[data-score="4"] span { background: #059669; }
.pro-meter-label { display: block; margin-top: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--pro-muted); }
.pro-rules { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem 0.75rem; }
.pro-rules li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--pro-muted); }
.pro-rules li i { width: 14px; text-align: center; font-size: 0.72rem; }
.pro-rules li.is-met { color: var(--pro-ok); }

.pro-check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.25rem 0 1.4rem; font-size: 0.86rem; line-height: 1.45; color: var(--pro-text); cursor: pointer; }
.pro-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.1rem; accent-color: var(--pro-primary); cursor: pointer; }
.pro-check a { color: var(--pro-primary); font-weight: 600; }
.pro-check.is-invalid { color: var(--pro-danger); }

.pro-btn {
    position: relative; width: 100%; height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    border: 0; border-radius: var(--pro-radius); font: inherit; font-size: 1rem; font-weight: 700; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, var(--pro-primary), var(--pro-primary-2)); box-shadow: 0 14px 30px -14px rgba(91, 75, 255, 0.75);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.pro-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pro-btn:active { transform: none; }
.pro-btn:disabled, .pro-btn.disabled { cursor: progress; filter: saturate(0.6); transform: none; }
.pro-btn i { transition: transform 0.2s ease; }
.pro-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.pro-btn-ghost { background: transparent; color: var(--pro-ink); border: 1.5px solid var(--pro-line); box-shadow: none; }

.pro-switch { margin: 1.5rem 0 0; text-align: center; font-size: 0.92rem; color: var(--pro-muted); }
.pro-switch a, .pro-foot-links a { color: var(--pro-primary); font-weight: 700; text-decoration: none; }
.pro-switch a:hover, .pro-foot-links a:hover { text-decoration: underline; }
.pro-foot-links { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--pro-line); display: grid; gap: 0.5rem; font-size: 0.84rem; color: var(--pro-muted); text-align: center; }
.pro-done { text-align: center; }
.pro-done-ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--pro-accent), #22c55e); }
.pro-done-ico.is-warn { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
a.pro-btn { text-decoration: none; }
a.pro-btn:hover { color: #fff; }

/* ---------- Start page (index.php) ---------- */
.pro-app { min-height: 100vh; background: var(--pro-soft); }
.pro-app-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 2.5rem); background: var(--pro-surface); border-bottom: 1px solid var(--pro-line); position: sticky; top: 0; z-index: 10; }
.pro-app-bar img { height: 30px; }
@media (prefers-color-scheme: dark) { .pro-app-bar img { filter: brightness(0) invert(1); } }
.pro-app-user { display: flex; align-items: center; gap: 0.75rem; }
.pro-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pro-primary), #ec4899); }
.pro-app-main { max-width: 1080px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; }
.pro-hero { position: relative; overflow: hidden; padding: 2rem; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #2e1f8f, #5b4bff 55%, #c026d3); }
.pro-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 20px 20px; }
.pro-hero > * { position: relative; z-index: 1; }
.pro-hero h1 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.pro-hero p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, 0.85); }
.pro-hero .pro-eyebrow { color: #fff; background: rgba(255, 255, 255, 0.16); }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.pro-card { padding: 1.35rem; border-radius: 20px; background: var(--pro-surface); border: 1px solid var(--pro-line); }
.pro-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 700; color: var(--pro-ink); }
.pro-card p { margin: 0; font-size: 0.88rem; color: var(--pro-muted); line-height: 1.5; }
.pro-card-ico { width: 44px; height: 44px; margin-bottom: 0.9rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--pro-primary); background: rgba(91, 75, 255, 0.1); }
.pro-card-ico.is-teal { color: #0d9488; background: rgba(20, 184, 166, 0.12); }
.pro-card-ico.is-pink { color: #db2777; background: rgba(236, 72, 153, 0.12); }
.pro-soon { display: inline-block; margin-top: 0.9rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--pro-muted); background: var(--pro-soft); border: 1px solid var(--pro-line); }
.pro-progress { display: flex; align-items: center; gap: 1rem; }
.pro-ring { --p: 0; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pro-primary) calc(var(--p) * 1%), var(--pro-line) 0); }
.pro-ring span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--pro-surface); font-weight: 800; font-size: 0.9rem; color: var(--pro-ink); }
.pro-account dl { margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.pro-account dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; }
.pro-account dt { color: var(--pro-muted); font-weight: 500; }
.pro-account dd { margin: 0; font-weight: 700; color: var(--pro-ink); text-align: right; overflow-wrap: anywhere; }
.pro-logout { width: auto; height: 40px; padding: 0 1rem; font-size: 0.88rem; }
