/* ── Welcome / Landing page styles ──────────────────────────────────────── */

body { overflow: hidden; }
@media (max-width: 900px) { body { overflow-y: auto; overflow-x: hidden; } }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.w-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* ── Hero side ──────────────────────────────────────────────────────────── */
.w-hero {
    flex: 1.2;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Centered hero content */
.w-hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: wFadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

/* Animated ring */
.w-ring-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 32px;
}

.w-logo-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
}

.w-logo-circle:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

.w-logo-circle img {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.3), 0 2px 8px rgba(0,0,0,0.4);
    transition: box-shadow 0.25s;
}

.w-logo-circle:hover img {
    box-shadow: 0 12px 48px rgba(10, 132, 255, 0.5), 0 4px 16px rgba(0,0,0,0.5);
}

/* Ouroboros SVG ring */
.w-ouro-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.w-ouro-arc {
    transform-origin: center;
    animation: wOuroSpin 8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.8));
}

.w-hero-brand {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1;
}

.w-hero-tagline {
    font-size: 16px;
    opacity: 0.82;
    font-weight: 500;
    margin: 0 0 28px;
    letter-spacing: 0.01em;
}

.w-hero-pills {
    display: flex;
    gap: 12px;
}

.w-pill {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s, background 0.2s;
}

.w-pill:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

/* ── Auth side ──────────────────────────────────────────────────────────── */
.w-auth {
    flex: 0 0 400px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    border-left: 1px solid var(--border);
}

.w-auth-box {
    width: 100%;
    max-width: 320px;
    text-align: center;
    animation: wFadeUp 0.5s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.w-auth-box h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.w-tagline {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.55;
    margin: 0 0 32px;
}

.w-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.w-btn-enter {
    width: 100%;
    padding: 17px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
}
.w-btn-google {
    background: #fff !important;
    color: #3c4043 !important;
    border: 1px solid #dadce0 !important;
    transition: background 0.2s, box-shadow 0.2s;
}
.w-btn-google:hover {
    background: #f7f8f8 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
[data-theme="dark"] .w-btn-google {
    background: #1a1a2e !important;
    color: #e8eaed !important;
    border-color: #444 !important;
}
[data-theme="dark"] .w-btn-google:hover {
    background: #252540 !important;
}

/* Divider */
.w-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}
.w-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.w-divider-text {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: lowercase;
}

/* Email form */
.w-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.w-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.w-input-wrap i {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: var(--text-dim);
    pointer-events: none;
}
.w-input {
    width: 100%;
    padding: 16px 16px 16px 44px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}
.w-input:focus {
    border-color: var(--accent);
}
.w-input::placeholder {
    color: var(--text-dim);
}
.w-btn-email {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
}
.w-btn-email:hover {
    opacity: 0.9;
}
.w-btn-email:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.w-email-error {
    font-size: 12px;
    color: var(--danger);
    margin: 0;
    text-align: center;
}
.w-email-sent-label {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.w-email-back {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.w-email-back:hover {
    color: var(--accent);
}

/* Telegram marketplace block */
.w-tg-block {
    display: block;
    text-decoration: none;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    transition: border-color 0.15s, background 0.15s;
}
.w-tg-block:hover {
    border-color: rgba(0,136,204,0.4);
    background: rgba(0,136,204,0.06);
}
.w-tg-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.w-tg-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.w-tg-desc {
    font-size: 11px;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.4;
}

/* Language switcher */
.w-lang-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.w-lang-btn {
    padding: 6px 16px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--text-sub);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.w-lang-btn.active,
.w-lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

/* Footer */
.w-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.w-version {
    font-size: 11px;
    color: var(--text-dim);
    margin: 0;
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes wFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wOuroSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Mobile logo (hidden on desktop) ───────────────────────────────────── */
.w-mobile-logo { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .w-hero  { display: none; }
    .w-auth  {
        flex: none;
        min-height: 100vh;
        border-left: none;
        background: var(--bg);
        padding: 64px 28px 48px;
    }
    .w-auth-box { max-width: 360px; }
    .w-mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 16px;
    }
    .w-mobile-logo img {
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(0,0,0,.15);
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .w-auth        { flex: 0 0 360px; }
    .w-ring-wrap   { width: 170px; height: 170px; }
    .w-hero-brand  { font-size: 36px; }
}
