/* GlobeWA OTP Login v7.0.6 — Magick World branded (Figma match) */

/* ── Page background: illustrated kids grid + dark overlay ───────────────────── */
body.gwoa-login-bg {
    background:
        linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
        url("https://magickworld.in/wp-content/uploads/2026/06/login-bg-kids.png") center top / 760px auto repeat;
    background-attachment: fixed;
}
/* Let the body background show through the theme's content wrappers on the login page */
body.gwoa-login-bg #wrapper,
body.gwoa-login-bg #main,
body.gwoa-login-bg .container-wrap,
body.gwoa-login-bg #content,
body.gwoa-login-bg .content,
body.gwoa-login-bg .site-content,
body.gwoa-login-bg article,
body.gwoa-login-bg .page-content,
body.gwoa-login-bg .entry-content {
    background: transparent !important;
}

/* ── Card ────────────────────────────────────────────────────────────────────── */
.gwoa-wrap {
    max-width: 560px;
    margin: 70px auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    z-index: 1;
}
.gwoa-hide { display: none !important; }

/* ── Brand logo (replaces the emoji on step 1) ───────────────────────────────── */
.gwoa-icon {
    font-size: 38px;
    text-align: center;
    margin-bottom: 20px;
}
/* Step 1 — swap emoji for the Magick World logo */
#gwoa-s1 .gwoa-icon {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    width: 224px;
    max-width: 100%;
    height: 96px;
    margin: 0 auto 24px;
    background-image: url("https://magickworld.in/wp-content/uploads/2026/06/mw-logo-color.png");
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* ── Headings ────────────────────────────────────────────────────────────────── */
.gwoa-wrap h3 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin: 0 0 8px;
    color: #111827;
    font-family: "Plus Jakarta Sans", "Raleway", sans-serif;
}
.gwoa-sub {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    line-height: 22px;
    margin: 0 0 28px;
}

/* ── Text / email / phone input ──────────────────────────────────────────────── */
.gwoa-input-row { margin-bottom: 16px; }
.gwoa-input-row input {
    width: 100%;
    padding: 18px 25px;
    font-size: 18px;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.gwoa-input-row input::placeholder { color: #6b7280; }
.gwoa-input-row input:focus {
    border-color: #4c0080;
    box-shadow: 0 0 0 3px rgba(76,0,128,0.12);
}

/* ── OTP input ───────────────────────────────────────────────────────────────── */
#gwoa-otp {
    width: 100%;
    padding: 16px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 10px;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
    margin-bottom: 16px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
#gwoa-otp::-webkit-outer-spin-button,
#gwoa-otp::-webkit-inner-spin-button { -webkit-appearance: none; }
#gwoa-otp:focus {
    border-color: #4c0080;
    box-shadow: 0 0 0 3px rgba(76,0,128,0.12);
}
#gwoa-otp::placeholder { font-size: 16px; font-weight: 400; letter-spacing: 0; color: #9ca3af; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.gwoa-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: #4c0080;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
    margin-bottom: 12px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    transition: background .2s, transform .1s;
}
.gwoa-btn:hover { background: #6a00b0; }
.gwoa-btn:active { transform: translateY(1px); }
.gwoa-btn:disabled { background: #c9a8e0; cursor: not-allowed; }

.gwoa-btn-outline {
    background: #ffffff;
    color: #4c0080;
    border: 1.5px solid #4c0080;
}
.gwoa-btn-outline:hover { background: #f8f2fd; }
.gwoa-btn-outline:disabled { color: #c9a8e0; border-color: #c9a8e0; background: #fff; }

.gwoa-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    font-family: inherit;
}
.gwoa-link:hover { color: #4c0080; }

/* ── Messages ────────────────────────────────────────────────────────────────── */
.gwoa-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 14px;
}
.gwoa-msg.success { background: #f0fdf4; color: #166534; }
.gwoa-msg.error   { background: #fef2f2; color: #991b1b; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* iOS ignores background-attachment:fixed — use scroll + cover the whole page */
    body.gwoa-login-bg {
        background:
            linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
            url("https://magickworld.in/wp-content/uploads/2026/06/login-bg-kids.png") center top / 460px auto repeat;
        background-attachment: scroll, scroll;
    }
    /* Stretch the content area so the illustrated background fills the screen down to the footer */
    body.gwoa-login-bg #wrapper,
    body.gwoa-login-bg #main,
    body.gwoa-login-bg .container-wrap,
    body.gwoa-login-bg #content,
    body.gwoa-login-bg .site-content {
        min-height: 100vh;
    }
    .gwoa-wrap { margin: 24px 16px 90px; padding: 32px 22px; border-radius: 24px; }
    .gwoa-wrap h3 { font-size: 24px; line-height: 30px; }
    #gwoa-s1 .gwoa-icon { width: 180px; height: 76px; }
    #gwoa-otp { font-size: 22px; letter-spacing: 8px; }
    .gwoa-input-row input { font-size: 16px; padding: 16px 18px; }
}
