/* Pragati look for the admin / seller / delivery boy / affiliate login, sign-up and password pages.
   Loaded only by the four portal login layouts (application/views/<portal>/login.php) and scoped to
   body.pg-auth, so the rest of the admin panels is untouched.
   Palette from the logo: Golden #D4A017, Mocha #5C3A21, Cream #FFF9F0, Espresso #2B2118.
   Desktop: split card (dark brand panel left, form right). Phones: brand block stacked above the form. */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

body.pg-auth {
    --pg-gold: #D4A017;
    --pg-gold-bright: #E9C356;
    --pg-mocha: #5C3A21;
    --pg-cream: #FFF9F0;
    --pg-espresso: #2B2118;
    --pg-gold-soft: #F6EAD2;
    --pg-gold-light: #E9D4AD;
    --pg-border: #EADFCF;
    --pg-muted: #74655A;
    /* Tabler reads its colours from these variables */
    --tblr-primary: #5C3A21;
    --tblr-primary-rgb: 92, 58, 33;
    --tblr-primary-fg: #FFF9F0;
    --tblr-primary-darken: #2B2118;
    --tblr-primary-lt: #F6EAD2;
    --tblr-link-color: #5C3A21;
    --tblr-link-color-rgb: 92, 58, 33;
    --tblr-link-hover-color: #2B2118;
    --tblr-link-hover-color-rgb: 43, 33, 24;
    --tblr-body-color: #2B2118;
    --tblr-secondary: #74655A;
    --tblr-border-color: #EADFCF;
    --tblr-font-sans-serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--tblr-font-sans-serif);
    color: var(--tblr-body-color);
    background: var(--pg-cream) !important;
}
/* soft blurred glows behind the card */
body.pg-auth::before,
body.pg-auth::after { content: ""; position: fixed; z-index: 0; width: 560px; height: 560px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
body.pg-auth::before { top: -220px; right: -160px; background: rgba(212, 160, 23, .30); }
body.pg-auth::after { bottom: -240px; left: -180px; background: rgba(92, 58, 33, .20); }
body.pg-auth > .overlay { display: none !important; }
body.pg-auth .page { position: relative; z-index: 1; }

/* ---------- brand panel (logo + copy) ---------- */
.pg-auth .login-logo {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 30px 24px 26px;
    text-align: center;
    color: var(--pg-cream);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212, 160, 23, .30), transparent 55%),
        radial-gradient(90% 80% at 100% 100%, rgba(212, 160, 23, .16), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 249, 240, .035) 0 2px, transparent 2px 14px),
        var(--pg-espresso);
    border-radius: 24px 24px 0 0;
}
/* one flex column so the eyebrow always sits above the title, also on the sign-up pages that bring their own <h1> */
.pg-auth .login-logo { display: flex; flex-direction: column; align-items: center; }
.pg-auth .pg-auth-brand { display: contents; }
.pg-auth .login-logo > a { order: 0; }
.pg-auth .pg-auth-eyebrow { order: 1; }
.pg-auth .login-logo > h1, .pg-auth .pg-auth-title { order: 2; }
.pg-auth .login-logo > p, .pg-auth .pg-auth-text { order: 3; }
.pg-auth .pg-auth-points { order: 4; align-self: stretch; }
.pg-auth .login-logo a { display: inline-block; }
.pg-auth .login-logo img { display: block; width: auto; height: auto; max-width: 230px; max-height: 78px; margin: 0 auto; }
.pg-auth .login-logo h1 { margin: 14px 0 6px !important; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--pg-cream); }
.pg-auth .login-logo > p { margin: 0; font-size: 14.5px; color: var(--pg-gold-light) !important; }
.pg-auth-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 5px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pg-gold); background: rgba(212, 160, 23, .12); border: 1px solid rgba(212, 160, 23, .38); border-radius: 999px; }
.pg-auth-title { margin: 14px 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--pg-cream); }
.pg-auth-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--pg-gold-light); }
.pg-auth-points { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; text-align: left; }
.pg-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: rgba(255, 249, 240, .92); }
.pg-auth-points i { display: inline-flex; flex: 0 0 38px; align-items: center; justify-content: center; height: 38px; font-size: 19px; color: var(--pg-espresso); background: linear-gradient(135deg, var(--pg-gold-bright), var(--pg-gold)); border-radius: 11px; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
/* old AdminLTE reset-password page keeps the logo inside the card */
.pg-auth .login-card-body .login-logo { margin-bottom: 18px !important; border-radius: 16px; }

/* ---------- card ---------- */
.pg-auth .container-tight { max-width: 460px; }
.pg-auth .card {
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 30px 60px -22px rgba(43, 33, 24, .28), 0 0 0 1px rgba(92, 58, 33, .06) !important;
}
.pg-auth .login-logo ~ .card { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.pg-auth .card-body { padding: 30px 28px; }
.pg-auth .card h2, .pg-auth .card .card-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--pg-espresso); }
.pg-auth .card h3 { font-weight: 800; color: var(--pg-espresso); }
.pg-auth .card h3 .ti { color: var(--pg-gold); }
.pg-auth .hr-text { color: var(--pg-muted) !important; }
.pg-auth .form-label, .pg-auth .col-form-label { font-size: 13.5px; font-weight: 700; color: var(--pg-espresso); }
.pg-auth .form-hint, .pg-auth .card .text-secondary, .pg-auth .card .text-muted { color: var(--pg-muted) !important; }

/* ---------- inputs ---------- */
.pg-auth .form-control, .pg-auth .form-select, .pg-auth .ts-control {
    min-height: 48px;
    border: 1.5px solid var(--pg-border);
    border-radius: 12px;
    background-color: #FFFDF9;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.pg-auth textarea.form-control { min-height: 96px; }
.pg-auth .intl-tel-input, .pg-auth .iti { display: block; width: 100%; }
.pg-auth .form-control:hover, .pg-auth .form-select:hover, .pg-auth .ts-control:hover { border-color: var(--pg-gold-light); }
.pg-auth .form-control:focus, .pg-auth .form-select:focus, .pg-auth .ts-wrapper.focus .ts-control {
    border-color: var(--pg-gold) !important;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, .18) !important;
}
.pg-auth .input-group-text { border: 1.5px solid var(--pg-border); background-color: #FFFDF9; }
.pg-auth .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pg-auth .input-group > .input-group-text:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.pg-auth .input-group:focus-within .input-group-text { border-color: var(--pg-gold); background-color: #fff; }
.pg-auth .form-check-input { border-color: var(--pg-gold-light); }
.pg-auth .form-check-input:checked { background-color: var(--pg-mocha); border-color: var(--pg-mocha); }
.pg-auth .form-check-input:focus { border-color: var(--pg-gold); box-shadow: 0 0 0 4px rgba(212, 160, 23, .18); }
.pg-auth .ts-dropdown { border-color: var(--pg-border); border-radius: 12px; box-shadow: 0 16px 32px rgba(43, 33, 24, .14); }
.pg-auth .ts-dropdown .active { color: var(--pg-espresso); background-color: var(--pg-gold-soft); }
.pg-auth .ts-control .item { color: var(--pg-espresso); background: var(--pg-gold-soft) !important; border-color: var(--pg-gold-light) !important; border-radius: 8px; }

/* ---------- buttons and links ---------- */
.pg-auth .btn { min-height: 48px; border-radius: 12px; font-weight: 700; letter-spacing: .01em; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.pg-auth .btn-primary {
    color: var(--pg-cream) !important;
    background: linear-gradient(135deg, #7A4E2D 0%, var(--pg-mocha) 45%, var(--pg-espresso) 100%) !important;
    border: 0 !important;
    box-shadow: 0 14px 26px -12px rgba(92, 58, 33, .65);
}
.pg-auth .btn-primary:hover, .pg-auth .btn-primary:focus { transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(92, 58, 33, .75), 0 0 0 3px rgba(212, 160, 23, .28); }
.pg-auth .btn:not(.btn-primary):not(.btn-close) { color: var(--pg-mocha); background: #fff; border: 1.5px solid var(--pg-border); }
.pg-auth .btn:not(.btn-primary):not(.btn-close):hover { color: var(--pg-espresso); background: var(--pg-cream); border-color: var(--pg-gold); }
.pg-auth a:not(.btn):not(.step-item):not(.navbar-brand) { color: var(--pg-mocha); font-weight: 700; }
.pg-auth a:not(.btn):not(.step-item):not(.navbar-brand):hover { color: var(--pg-espresso); text-decoration: underline; text-decoration-color: var(--pg-gold); text-underline-offset: 3px; }

/* ---------- sign-up wizard steps ---------- */
.pg-auth .steps { --tblr-steps-color: var(--pg-mocha) !important; --tblr-steps-inactive-color: var(--pg-gold-light) !important; }
.pg-auth .steps .step-item { color: var(--pg-muted); font-weight: 600; }
.pg-auth .steps .step-item.active { color: var(--pg-espresso); font-weight: 800; }

/* ---------- notes ---------- */
.pg-auth .alert-info { color: var(--pg-espresso) !important; background: var(--pg-cream) !important; border-color: var(--pg-gold-light) !important; border-radius: 14px; }
.pg-auth .alert-info .ti, .pg-auth .alert-info .alert-title { color: var(--pg-mocha) !important; }

/* text under the card */
.pg-auth .page .container > .text-center:not(.login-logo) { color: var(--pg-muted); }

@media (prefers-reduced-motion: no-preference) {
    .pg-auth .page .container { animation: pg-rise .45s ease-out both; }
    @keyframes pg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- desktop: split card ---------- */
@media (min-width: 992px) {
    .pg-auth .page-center { padding: 40px 0; }
    .pg-auth .container-tight,
    .pg-auth .page > .container:not(.container-tight) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; max-width: 1000px !important; }
    .pg-auth .page > .container:not(.container-tight) { grid-template-columns: 380px minmax(0, 1fr); max-width: 1180px !important; }
    .pg-auth .page .container > .login-logo {
        justify-content: center;
        align-items: flex-start;
        grid-row: 1;
        grid-column: 1;
        padding: 56px 46px;
        text-align: left !important;
        border-radius: 24px 0 0 24px;
    }
    .pg-auth .page .container > .login-logo img { max-width: 260px; max-height: 88px; margin: 0; }
    .pg-auth .page .container > .login-logo h1 { font-size: 30px; }
    .pg-auth-title { font-size: 32px; }
    .pg-auth .page .container > .card { grid-row: 1; grid-column: 2; border-radius: 0 24px 24px 0 !important; }
    .pg-auth .container-tight > .card > .card-body { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: 48px 44px; }
    .pg-auth .page > .container:not(.container-tight) > .card > .card-body { padding: 40px 40px 34px; }
    .pg-auth .page .container > :not(.login-logo):not(.card) { grid-column: 1 / -1; }
}

/* ---------- phones ---------- */
@media (max-width: 991.98px) {
    .pg-auth-points { display: none; }
}
@media (max-width: 575.98px) {
    .pg-auth .page-center .container, .pg-auth .container-tight { padding-left: 14px; padding-right: 14px; }
    .pg-auth .login-logo { padding: 22px 16px 20px; }
    .pg-auth .login-logo img { max-width: 190px; max-height: 64px; }
    .pg-auth .login-logo h1, .pg-auth-title { font-size: 22px; }
    .pg-auth .card-body { padding: 24px 18px !important; }
    .pg-auth .card h2, .pg-auth .card .card-title { font-size: 21px; }
    .pg-auth .steps .h4 { font-size: 12px; }
}
