/* ==========================================================================
   Whitoo — Auth pages 2026 redesign
   Loaded last in base.auth.html. Everything is scoped under .wa26 so the auth
   pages that don't use the shell yet are untouched.

   login_form.html markup is NOT modified — its real hooks must keep working:
     #login-form-member, name=email/password, csrf, reCaptcha (v2 div.g-recaptcha
     + v3 hidden input), #main-login, guest pills (#pills-member/#pills-guest),
     social providers loop, SSO branch.
   ========================================================================== */

.wa26 {
    --wa-bg: #0a0c14;
    --wa-panel: rgba(20, 24, 36, .72);
    --wa-line: rgba(255, 255, 255, .08);
    --wa-text: #e9edf7;
    --wa-muted: #838ca0;
    --wa-red: #ef2b52;
    --wa-pink: #ec4899;
    --wa-purple: #a855f7;
    --wa-radius: 18px;

    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: clamp(16px, 3vw, 40px);
    color: var(--wa-text);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 26px);
}

body.auth-body:has(.wa26) {
    background:
        radial-gradient(900px 520px at 22% 32%, rgba(168, 85, 247, .18), transparent 62%),
        radial-gradient(760px 460px at 78% 20%, rgba(239, 43, 82, .14), transparent 58%),
        #0a0c14 !important;
}

.wa26-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.wa26-brand img {
    height: 34px;
    width: auto;
    /* whitoo-perf.css sets img{content-visibility:auto} on some pages */
    content-visibility: visible;
}

.wa26-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
    align-items: center;
    gap: clamp(20px, 4vw, 70px);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ============================ ART SIDE ============================ */

.wa26-art {
    min-width: 0;
}

.wa26-art-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(210px, 26vw, 330px);
    margin-bottom: 10px;
}

.wa26-mascot {
    position: relative;
    z-index: 3;
    width: clamp(170px, 20vw, 280px);
    height: auto;
    content-visibility: visible;
    filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .6));
    animation: wa26-float 5s ease-in-out infinite;
}

@keyframes wa26-float {
    0%, 100% { transform: translateY(-6px); }
    50%      { transform: translateY(9px); }
}

/* Lit platform under the mascot */
.wa26-glow {
    position: absolute;
    z-index: 1;
    bottom: 16%;
    left: 50%;
    width: clamp(190px, 22vw, 300px);
    height: 56px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, .45) 0%, rgba(236, 72, 153, .8) 26%, rgba(168, 85, 247, .5) 54%, transparent 74%);
    filter: blur(6px);
    animation: wa26-pulse 5s ease-in-out infinite;
}

.wa26-ring {
    position: absolute;
    z-index: 2;
    bottom: 15%;
    left: 50%;
    width: clamp(150px, 17vw, 232px);
    height: 34px;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 140, 200, .8);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(236, 72, 153, .8), inset 0 0 18px rgba(168, 85, 247, .6);
    animation: wa26-pulse 5s ease-in-out infinite;
}

@keyframes wa26-pulse {
    0%, 100% { opacity: .75; transform: translateX(-50%) scale(.94); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}

.wa26-coin {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(150deg, #c084fc, #7c3aed);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(168, 85, 247, .8), inset 0 2px 0 rgba(255, 255, 255, .35);
    animation: wa26-float 4.4s ease-in-out infinite;
}

.wa26-coin-1 { top: 22%;  left: 4%;   animation-delay: .2s; }
.wa26-coin-2 { top: 30%;  right: 8%;  animation-delay: 1.1s; width: 38px; height: 38px; font-size: 14px; }
.wa26-coin-3 { bottom: 30%; left: 10%; animation-delay: 1.9s; width: 38px; height: 38px; font-size: 14px; }

.wa26-art h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.wa26-art h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ec4899, #a855f7 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wa26-art > p {
    margin: 0 0 22px;
    color: var(--wa-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.wa26-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-bottom: 20px;
}

.wa26-facts > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa26-facts i {
    color: var(--wa-red);
    font-size: 20px;
}

.wa26-facts span {
    line-height: 1.3;
}

.wa26-facts b {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.wa26-facts small {
    color: var(--wa-muted);
    font-size: 10.5px;
}

.wa26-secure {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 430px;
    padding: 14px 16px;
    border: 1px solid var(--wa-line);
    border-radius: 14px;
    background: rgba(18, 22, 33, .6);
}

.wa26-secure-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(150deg, rgba(239, 43, 82, .3), rgba(168, 85, 247, .25));
    color: #fb7185;
    font-size: 19px;
}

.wa26-secure > div {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.wa26-secure strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
}

.wa26-secure small {
    color: var(--wa-muted);
    font-size: 10.8px;
}

.wa26-secure > i:last-child {
    color: var(--wa-muted);
    font-size: 16px;
}

/* ============================ FORM CARD ============================ */

.wa26-card {
    padding: clamp(22px, 2.4vw, 36px);
    border: 1px solid rgba(168, 85, 247, .22);
    border-radius: 22px;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(168, 85, 247, .12), transparent 62%),
        var(--wa-panel);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
    min-width: 0;
}

/* logo.html include at the top of login_form.html */
.wa26-card .navbar-brand,
.wa26-card .logo {
    height: 30px;
    width: auto;
    content-visibility: visible;
}

.wa26-card > .text-center.mb-2 {
    margin-bottom: 14px !important;
}

.wa26-card h2 {
    margin-bottom: 4px !important;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.015em;
}

/* subtitle under the heading */
.wa26-card h2 + .wa26-sub {
    color: var(--wa-muted);
}

.wa26 .form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--wa-text);
    font-size: 12px;
    font-weight: 700;
}

.wa26 .form-label-description {
    margin: 0;
}

.wa26 .form-label-description a {
    color: #fb7185 !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.wa26 .form-label-description a:hover {
    color: #fff !important;
}

.wa26 .form-control,
.wa26 .form-select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--wa-line) !important;
    border-radius: 11px !important;
    background: rgba(9, 12, 20, .72) !important;
    color: var(--wa-text) !important;
    font-size: 13px;
    box-shadow: none !important;
}

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

.wa26 .form-control:focus,
.wa26 .form-select:focus {
    border-color: rgba(168, 85, 247, .6) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .14) !important;
}

/* Chrome paints autofilled inputs with its own light background and ignores
   background-color. The inset box-shadow trick is the only way to keep them
   dark — this is why the fields looked white once a saved password filled in. */
.wa26 .form-control:-webkit-autofill,
.wa26 .form-control:-webkit-autofill:hover,
.wa26 .form-control:-webkit-autofill:focus,
.wa26 .form-control:-webkit-autofill:active,
.wa26 .form-select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #0b0f19 inset !important;
    box-shadow: 0 0 0 1000px #0b0f19 inset !important;
    -webkit-text-fill-color: var(--wa-text) !important;
    caret-color: var(--wa-text) !important;
    border-color: var(--wa-line) !important;
    /* keeps Chrome from re-painting its yellow/blue wash on blur */
    transition: background-color 100000s ease-in-out 0s;
}

.wa26 .form-control:-webkit-autofill:focus {
    border-color: rgba(168, 85, 247, .6) !important;
}

.wa26 .input-group-flat {
    border-radius: 11px;
    overflow: hidden;
}

.wa26 .input-group-flat .form-control {
    border-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.wa26 .input-group-text {
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--wa-line) !important;
    border-left: 0 !important;
    border-radius: 0 11px 11px 0 !important;
    background: rgba(9, 12, 20, .72) !important;
}

.wa26 .input-group-text a {
    color: var(--wa-muted) !important;
}

.wa26 .input-group-text a:hover {
    color: #fff !important;
}

/* Primary submit (#main-login is .btn.btn-dark in the markup) */
.wa26 .form-footer {
    margin-top: 18px;
}

.wa26 .btn-dark,
.wa26 .btn-primary,
.wa26 #main-login {
    height: 48px;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #ef2b52, #a855f7) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(168, 85, 247, .35);
    transition: transform .16s ease, filter .16s ease;
}

.wa26 .btn-dark:hover,
.wa26 .btn-primary:hover,
.wa26 #main-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* Guest / member pills */
.wa26 .login-selector {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    background: rgba(9, 12, 20, .55);
}

.wa26 .login-selector .nav-link {
    border-radius: 9px;
    color: var(--wa-muted);
    font-size: 12.5px;
    font-weight: 700;
}

.wa26 .login-selector .nav-link.active {
    background: linear-gradient(135deg, #ef2b52, #a855f7) !important;
    color: #fff !important;
}

/* Social login */
/* The old approach centred the label over the <hr> and hid the line with a
   translucent patch — the rule showed through and read as strike-through.
   Flex + a pseudo second line means no background patch at all. */
.wa26 .social-seperator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
}

.wa26 .social-seperator hr {
    flex: 1;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--wa-line);
    opacity: 1;
}

.wa26 .social-seperator::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--wa-line);
}

.wa26 .social-seperator div {
    position: static;
    flex: 0 0 auto;
    transform: none;
    padding: 0;
    background: none;
    color: var(--wa-muted);
    font-size: 11.5px;
    white-space: nowrap;
}

.wa26 .social-login-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.wa26 .social-provider a {
    display: grid;
    place-items: center;
    width: 62px;
    height: 48px;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.wa26 .social-provider a:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, .5);
    background: rgba(168, 85, 247, .14);
}

.wa26 .social-provider img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    content-visibility: visible;
}

/* Footer link row ("Hesabın yok mu? Kayıt ol") */
.wa26-card .text-center.text-muted,
.wa26-card .text-center.mt-3 {
    margin-top: 22px !important;
    padding-top: 20px;
    border-top: 1px solid var(--wa-line);
    color: var(--wa-muted) !important;
    font-size: 12.5px;
}

.wa26-card a {
    color: #fb7185 !important;
    font-weight: 700;
    text-decoration: none;
}

.wa26-card a:hover {
    color: #fff !important;
}

/* alerts from msg() */
.wa26 .alert {
    border-radius: 12px;
    font-size: 12.5px;
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1080px) {
    .wa26-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        justify-items: center;
        text-align: center;
    }

    .wa26-art {
        max-width: 560px;
    }

    .wa26-facts {
        justify-content: center;
    }

    .wa26-secure {
        margin: 0 auto;
        text-align: left;
    }

    .wa26-card {
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    .wa26 { padding: 14px; gap: 12px; }
    .wa26-art-stage { height: 180px; margin-bottom: 4px; }
    .wa26-mascot { width: 150px; }
    .wa26-coin { width: 34px; height: 34px; font-size: 13px; }
    .wa26-coin-2, .wa26-coin-3 { width: 28px; height: 28px; font-size: 11px; }
    .wa26-art h1 { font-size: 25px; }
    .wa26-art > p { font-size: 12.5px; margin-bottom: 16px; }
    .wa26-facts { gap: 14px; margin-bottom: 14px; }
    .wa26-facts b { font-size: 12px; }
    .wa26-card { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .wa26-mascot, .wa26-glow, .wa26-ring, .wa26-coin { animation: none; }
}

/* Subtitle under the card heading (rendered only when wa26_shell is set, so the
   chat-room login that also includes login_form.html stays unchanged). */
.wa26-card .wa26-sub {
    margin: 0 0 20px;
    color: var(--wa-muted);
    font-size: 12.5px;
}
