/* =====================================================
   login.css — full replacement
   (loaded AFTER custom.css, so it intentionally overrides
    custom.css's .app-shell and .otp-input rules)
   ===================================================== */

:root {
    --brand: #f4511e;
    --brand2: #ff6a22;
    --brand-dark: #d8420f;
    --ink: #14213d;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fff3ee 0%, #eef1f6 45%, #e7ebef 100%);
    min-height: 100vh;
    color: var(--ink);
}

.app-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0;                       /* overrides custom.css padding-bottom: 90px */
    display: flex;
    flex-direction: column;
    background-color: #f8f9fb;
    box-shadow: 0 0 40px rgba(20, 35, 55, .08);
}

/* ---------- Hero ---------- */
.lg-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 22px 76px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 34px 34px;
    background:
        radial-gradient(circle at 90% 4%, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #f4511e 0%, #ff6a22 55%, #ff9a3c 100%);
    box-shadow: 0 16px 34px rgba(244, 81, 30, .28);
}

.lg-hero::before,
.lg-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    pointer-events: none;
}

.lg-hero::before { width: 190px; height: 190px; right: -70px; top: -80px; }
.lg-hero::after  { width: 120px; height: 120px; left: -45px; bottom: -50px; }

.lg-top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.help-link {
    display: inline-flex;
    align-items: center;
    padding: .38rem .85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.lg-logo-wrap {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    margin: 10px auto 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.brand-logo {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
    object-fit: contain;
}

.brand-title {
    position: relative;
    z-index: 1;
    margin: 0 0 4px;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -.02em;
    text-align: center;
}

.brand-subtitle {
    position: relative;
    z-index: 1;
    max-width: 290px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .92);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* ---------- Form area ---------- */
.lg-main {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-top: -46px;
    padding: 0 18px;
}

.auth-card {
    border: 1px solid var(--line, #e3e7ec);
    border-radius: 1.6rem;
    box-shadow: 0 18px 40px rgba(20, 35, 55, .16);
}

.lg-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.lg-card-head h5 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.lg-card-head small { display: block; margin-top: 1px; font-size: .76rem; color: #727d8d; line-height: 1.4; }

.lg-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 16px rgba(244, 81, 30, .3);
}

.lg-card-icon.green {
    background: linear-gradient(135deg, #168653, #2ecc8f);
    box-shadow: 0 8px 16px rgba(22, 134, 83, .3);
}

/* Phone input */
.lg-phone .form-select,
.lg-phone .form-control {
    height: 52px;
    border: 1.5px solid #e3e7ec;
    font-size: .95rem;
}

.lg-phone .form-select { border-radius: .9rem 0 0 .9rem; }
.lg-phone .form-control { border-radius: 0 .9rem .9rem 0; font-weight: 600; letter-spacing: .02em; }

.country-select {
    max-width: 92px;
    font-weight: 800;
    background-color: #fafbfc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(244, 81, 30, .15);
}

/* Primary button */
.btn-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    padding: .85rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(244, 81, 30, .3);
    transition: transform .12s ease, filter .15s ease;
}

.btn-brand:hover,
.btn-brand:focus { color: #fff; filter: brightness(1.04); }
.btn-brand:active { color: #fff; transform: scale(.98); }
.btn-brand:disabled { opacity: .6; box-shadow: none; }

/* OTP boxes (override custom.css .otp-input) */
.otp-input {
    width: 100%;
    height: 54px;
    aspect-ratio: auto;
    padding: 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    border: 1.5px solid #e3e7ec;
    border-radius: .9rem;
    background: #fafbfc;
    color: var(--ink);
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}

.otp-input::placeholder { color: #cbd2dc; font-weight: 700; }

.otp-input:focus {
    background: #fff;
    transform: translateY(-1px);
}

.otp-input:not(:placeholder-shown) {
    background: #fff1eb;
    border-color: var(--brand);
    color: var(--brand-dark);
}

.link-btn {
    border: 0;
    background: none;
    color: var(--brand);
    font-weight: 800;
    font-size: .8rem;
    padding: 0;
}

.link-btn:disabled { color: #b7bec8; }

.lg-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .35rem .75rem;
    border-radius: 20px;
    background: #fff1eb;
}

.lg-resend {
    padding: 9px 12px;
    border-radius: 12px;
    background: #f5f7fa;
}

.otp-timer { font-size: .8rem; font-weight: 600; color: #727d8d; }

/* Alerts (login.js toggles .d-none and alert-* classes) */
.alert { border: 0; border-radius: .8rem; font-weight: 600; }

/* ---------- Feature chips ---------- */
.lg-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.lg-feature {
    padding: 12px 6px;
    text-align: center;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line, #e3e7ec);
    box-shadow: 0 6px 16px rgba(20, 35, 55, .06);
}

.lg-feature span {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
}

.lg-feature span.orange { background: linear-gradient(135deg, #f4511e, #ff8a3d); }
.lg-feature span.blue   { background: linear-gradient(135deg, #2b6cf6, #5b9bff); }
.lg-feature span.green  { background: linear-gradient(135deg, #168653, #2ecc8f); }

.lg-feature b     { display: block; font-size: .78rem; font-weight: 800; }
.lg-feature small { display: block; font-size: .64rem; color: #727d8d; font-weight: 600; }

.app-footer-text {
    text-align: center;
    font-size: .7rem;
    color: #a0a8b3;
    padding: 1.4rem 0 1.1rem;
}

/* ---------- Card switch animation (login.js toggles .show-block) ---------- */
.fade-toggle { display: none; }

.fade-toggle.show-block {
    display: block;
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.spinner-border-sm-white {
    width: 1rem;
    height: 1rem;
    border-width: .15em;
}
