/*
 * Login / Forgot password / Reset password pages ka common design.
 * Brand panel: app/Views/admin/includes/auth_brand.php
 */
:root {
    --brand-teal: #008489;
    --brand-green: #008439;
    --brand-lime: #99bc3c;
    --green: #007927;
    --green-dark: #00561c;
    --green-deep: #003d14;
    --green-soft: #e8f3ec;
    --text: #1f2a24;
    --muted: #6b7570;
    --border: #d7ddd9;
    --error: #c62828;
}
* { box-sizing: border-box; }
input, button { font-family: inherit; }
html, body { margin: 0; }
body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #f4f7f5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page { display: flex; flex: 1 0 auto; }

/* ---------- Top header (schwabeindia.com jaisa) ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding-top: 8px;               /* patti top se 8px neeche */
    position: relative; z-index: 2;
}
.brand-bar-inline {
    display: block; height: 5px;
    background: linear-gradient(to right,
        var(--brand-teal) 0 34px, #fff 34px 38px,
        var(--brand-green) 38px 98px, #fff 98px 101px,
        var(--brand-lime) 101px 100%);
}
.site-header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 40px 14px; }
.site-logo img { display: block; height: 52px; width: auto; }
.site-divider { width: 1px; height: 34px; background: var(--border); }
.site-label { font-size: 16px; font-weight: 600; color: var(--green-dark); letter-spacing: .2px; }

/* ---------- Left: brand panel ---------- */
.brand {
    position: relative;
    flex: 1 1 55%;
    overflow: hidden;
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.10), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(0,0,0,.25), transparent 50%),
        linear-gradient(150deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
}
.brand .leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.brand > * { position: relative; }
.brand-top { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; }
.brand-mid h1 {
    font-size: 44px; line-height: 1.15; margin: 0 0 16px; font-weight: 600; letter-spacing: -.5px;
}
.brand-mid h1 span { display: block; font-weight: 300; opacity: .9; }
.brand-mid .tagline { font-size: 18px; opacity: .9; margin: 0 0 40px; font-style: italic; }
.features { list-style: none; margin: 0; padding: 0; max-width: 440px; }
.features li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.features .ic {
    flex: 0 0 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.features b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.features small { font-size: 13px; opacity: .8; line-height: 1.45; }
.brand-foot { font-size: 12px; opacity: .7; }

/* ---------- Right: login card ---------- */
.auth {
    position: relative; z-index: 1;
    flex: 1 1 45%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.card {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,61,20,.10);
    padding: 40px 36px 32px;
}
.card .eyebrow {
    text-align: center; margin: 0 0 10px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brand-teal);
}
.card h2.portal-name { font-size: 28px; line-height: 1.2; margin-bottom: 8px; color: var(--green-dark); }
.card h2.portal-name span { display: block; font-size: 17px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.card h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; text-align: center; }
.card .sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; text-align: center; }

.alert {
    background: #fdecea; color: var(--error); border: 1px solid #f5c6c2;
    border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px;
    display: flex; gap: 10px; align-items: flex-start;
}
.alert.ok { background: var(--green-soft); color: var(--green-dark); border-color: #bfe0ca; }
.alert:empty { display: none; }
.alert p { margin: 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3a463f; }
.input-wrap { position: relative; }
.input-wrap .fa-lead {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #9aa59f; font-size: 15px; width: 16px; text-align: center;
}
.input-wrap input {
    width: 100%; height: 46px; padding: 0 44px 0 42px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 15px; color: var(--text); background: #fbfcfb;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-wrap input:focus {
    outline: none; border-color: var(--green); background: #fff;
    box-shadow: 0 0 0 4px rgba(0,121,39,.12);
}
.input-wrap input:focus + .fa-lead, .input-wrap input:focus ~ .fa-lead { color: var(--green); }
.toggle-pass {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #9aa59f; cursor: pointer;
    width: 36px; height: 36px; border-radius: 8px; font-size: 15px;
}
.toggle-pass:hover { color: var(--green); background: var(--green-soft); }
.errormsg { color: var(--error); font-size: 12.5px; margin-top: 6px; display: block; }
.hide { display: none !important; }

.row-between { display: flex; justify-content: flex-end; margin: -4px 0 22px; }
.forgotLink { font-size: 13.5px; color: var(--green); text-decoration: none; font-weight: 600; }
.forgotLink:hover { text-decoration: underline; color: var(--green-dark); }

.btn-signin {
    width: 100%; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(180deg, #0a8a33, var(--green));
    color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .3px;
    box-shadow: 0 6px 16px rgba(0,121,39,.25);
    transition: transform .1s, box-shadow .15s, filter .15s;
}
.btn-signin:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(0,121,39,.32); }
.btn-signin:active { transform: translateY(1px); }
.btn-signin:focus-visible { outline: 3px solid rgba(0,121,39,.35); outline-offset: 2px; }

.card-foot {
    margin-top: 26px; padding-top: 18px; border-top: 1px solid #edf0ee;
    font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.6;
}
.card-foot .fa { color: var(--green); margin-right: 4px; }
.copy { display: none; font-size: 12px; color: var(--muted); text-align: center; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .brand { padding: 40px; }
    .brand-mid h1 { font-size: 34px; }
}
@media (max-width: 767px) {
    .page { flex-direction: column; }
    .brand { flex: 0 0 auto; padding: 24px 20px 64px; }
    .brand-top, .features, .brand-foot { display: none; }
    .site-header-inner { padding: 10px 16px 12px; gap: 12px; }
    .site-logo img { height: 40px; }
    .site-label { font-size: 14px; }
    .brand-mid h1 { font-size: 26px; margin-bottom: 6px; }
    .brand-mid .tagline { font-size: 15px; margin: 0; }
    .auth { flex: 1 0 auto; width: 100%; padding: 0 16px 28px; margin-top: -44px; justify-content: flex-start; align-items: stretch; }
    .card { margin: 0 auto; }
    .card { padding: 30px 22px 24px; }
    .copy { display: block; }
}
    

/* ---------- Forgot / Reset pages ---------- */
.card .icon-badge {
    width: 56px; height: 56px; border-radius: 16px; margin: -4px auto 16px;
    background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; color: var(--green); text-decoration: none;
}
.back-link:hover { text-decoration: underline; color: var(--green-dark); }
.form-foot { text-align: center; margin-top: 18px; }
.btn-signin.as-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
