/* ZIMO PLAY - Auth pages (login / register / forgot password)
   index.php ও বাকি পেজের ডিজাইন টোকেন অনুসরণ করে */

:root {
    --primary: #00875a;
    --primary-dark: #005a3c;
    --primary-light: #e6f7f0;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --border-ui: #e2e8f0;
    --app-width: 440px;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --ok-text: #047857;
    --ok-bg: #ecfdf5;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Poppins', 'Hind Siliguri', sans-serif;
    background-color: #0b0f19;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    width: 100%;
    max-width: var(--app-width);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* ---------- Hero ---------- */
.auth-hero {
    position: relative;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #047857 100%);
    color: #ffffff;
    padding: 26px 22px 70px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}
.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.auth-hero::before { width: 220px; height: 220px; top: -90px; right: -70px; }
.auth-hero::after  { width: 140px; height: 140px; bottom: -60px; left: -40px; }

.hero-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
}
.brand span { color: #34d399; }
.brand-sub {
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #a7f3d0;
    margin-top: 2px;
}

.hero-art {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-art svg { width: 32px; height: 32px; fill: #6ee7b7; }

.hero-title {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}
.hero-title span {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #d1fae5;
    line-height: 1.5;
}

/* ---------- Card ---------- */
.auth-card {
    position: relative;
    z-index: 2;
    margin: -44px 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-ui);
    border-radius: 20px;
    padding: 22px 18px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert.ok    { background: var(--ok-bg); color: var(--ok-text); border: 1px solid #a7f3d0; }

/* ---------- Fields ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.field label {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap svg.ico {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border-ui);
    border-radius: 14px;
    padding: 0 44px 0 42px;
    font: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap input::placeholder { color: #94a3b8; font-size: 13px; }
.input-wrap input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.12);
}
.input-wrap input.invalid { border-color: #f87171; background: #fff7f7; }

.toggle-pass {
    position: absolute;
    right: 6px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-pass svg { width: 18px; height: 18px; fill: #94a3b8; }

.field-error {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}

/* ---------- Checkbox / links / buttons ---------- */
.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
}
.check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.row-end { display: flex; justify-content: flex-end; margin: -4px 0 18px; }

.link {
    color: var(--primary);
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.link:hover { text-decoration: underline; }

.btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00875a, #059669);
    color: #ffffff;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 135, 90, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.1s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: wait; }

.switch-text {
    text-align: center;
    margin-top: 18px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 13.5px;
    color: var(--text-sub);
}

/* ---------- Sent state (forgot password) ---------- */
.sent-box { text-align: center; padding: 8px 4px 4px; }
.sent-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sent-box h2 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}
.sent-box p {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
}

.auth-footer {
    margin-top: auto;
    padding: 0 16px 26px;
    text-align: center;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 11.5px;
    color: var(--text-sub);
}

@media (max-width: 360px) {
    .auth-hero { padding: 22px 18px 64px; }
    .hero-title { font-size: 21px; }
}
