@charset "utf-8";
/* ==========================================================================
   E-indhan Partner — Sign-in page
   Used only by resources/views/signin.blade.php
   ========================================================================== */

:root {
    --brand:        #56B700;   /* E-indhan primary green */
    --brand-600:    #4CA300;
    --brand-700:    #3D8A00;
    --brand-800:    #2C6100;
    --brand-soft:   #F1F9E8;
    --brand-ring:   rgba(86, 183, 0, .28);

    --ink:          #0B1320;
    --ink-2:        #334155;
    --muted:        #64748B;
    --line:         #E2E8F0;
    --line-strong:  #CBD5E1;
    --surface:      #FFFFFF;
    --canvas:       #F5F7FA;

    --danger:       #DC2626;
    --danger-bg:    #FEF2F2;
    --danger-line:  #FECACA;
    --success:      #15803D;
    --success-bg:   #F0FDF4;
    --success-line: #BBF7D0;
    --warning:      #B45309;
    --warning-bg:   #FFFBEB;
    --warning-line: #FDE68A;

    --radius:       12px;
    --radius-lg:    20px;
    --shadow-card:  0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
    --ease:         cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
svg { display: block; }

/* ---------- Shell ---------- */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(460px, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ==========================================================================
   Hero panel
   ========================================================================== */
.auth-hero {
    position: relative;
    overflow: hidden;
    color: var(--ink);
    background: #F6FAF1;
    isolation: isolate;
}

.auth-hero__media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: var(--hero-image) center 35% / cover no-repeat;
    transform: scale(1.08);
    animation: hero-zoom 22s var(--ease) forwards;
}

.auth-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(248, 252, 244, .97) 0%, rgba(248, 252, 244, .92) 42%, rgba(248, 252, 244, .55) 72%, rgba(248, 252, 244, .25) 100%),
        linear-gradient(180deg, rgba(248, 252, 244, .55) 0%, rgba(248, 252, 244, 0) 32%, rgba(248, 252, 244, .9) 100%);
}

.auth-hero__glow {
    position: absolute;
    z-index: -1;
    width: 620px;
    height: 620px;
    left: -180px;
    bottom: -260px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(86, 183, 0, .22), rgba(86, 183, 0, 0));
    filter: blur(10px);
    animation: glow-pulse 8s ease-in-out infinite;
}

.auth-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 44px 56px 40px;
}

.auth-hero__logo {
    display: inline-flex;
    width: fit-content;
}

.auth-hero__logo img {
    width: 150px;
    height: auto;
    filter: brightness(0) saturate(100%);   /* white wordmark shown dark on the light panel, as in the sidebar */
    opacity: .86;
}

.auth-hero__content {
    margin-top: auto;
    max-width: 560px;
    padding: 48px 0 40px;
    animation: rise .8s var(--ease) .1s both;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border: 1px solid #DAEFC4;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px -8px rgba(56, 122, 0, .45);
    color: var(--brand-800);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-chip__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.auth-chip__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand);
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

.auth-hero__title {
    margin-top: 22px;
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.auth-hero__title span {
    background: linear-gradient(90deg, #56B700 0%, #3D8A00 60%, #2C6100 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-hero__lead {
    margin-top: 18px;
    max-width: 480px;
    font-size: 16.5px;
    line-height: 1.65;
    color: #475467;
}

.auth-features {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    max-width: 460px;
    border: 1px solid #E3EDDA;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px -20px rgba(16, 24, 40, .35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13.5px;
    color: var(--muted);
    transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
    animation: rise .7s var(--ease) both;
}

.auth-features li:nth-child(1) { animation-delay: .35s; }
.auth-features li:nth-child(2) { animation-delay: .45s; }
.auth-features li:nth-child(3) { animation-delay: .55s; }

.auth-features li:hover {
    background: #fff;
    border-color: rgba(86, 183, 0, .45);
    transform: translateX(4px);
}

.auth-features strong {
    display: block;
    margin-bottom: 1px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}

.auth-features__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #F1F9E8, #E4F3D2);
    box-shadow: inset 0 0 0 1px #DAEFC4;
}

.auth-features__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--brand-700);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-hero__footer {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: var(--muted);
}

.auth-hero__tagline {
    flex: none;
    font-weight: 600;
    letter-spacing: .02em;
}

.auth-hero__tagline em {
    font-style: normal;
    color: var(--brand-700);
}

.auth-hero__energy {
    position: relative;
    flex: 1;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(16, 24, 40, .08);
}

.auth-hero__energy span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(86, 183, 0, 0), var(--brand), #7BD12A);
    animation: energy 3.2s var(--ease) infinite;
}

/* ==========================================================================
   Sign-in panel
   ========================================================================== */
.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px 28px;
    background:
        radial-gradient(900px 480px at 100% 0%, rgba(86, 183, 0, .07), transparent 60%),
        var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 408px;
    margin: auto 0;
    animation: rise .7s var(--ease) .05s both;
}

.auth-card__header h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.auth-card__header p {
    margin-top: 8px;
    font-size: 15px;
    color: var(--muted);
}

.auth-card__header { margin-bottom: 28px; }

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: var(--radius);
    font-size: 13.5px;
    line-height: 1.5;
    animation: rise .35s var(--ease) both;
    transition: opacity .2s ease, transform .2s ease;
}

.alert.is-leaving { opacity: 0; transform: translateY(-4px); }

.alert > div,
.alert ul { flex: 1; min-width: 0; }

.alert ul { list-style: none; }
.alert li + li { margin-top: 2px; }

.alert a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.alert__icon { flex: none; margin-top: 1px; }

.alert__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alert .close {
    flex: none;
    width: 24px;
    height: 24px;
    margin: -2px -4px 0 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease;
}

.alert .close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

.alert-danger  { color: #991B1B; background: var(--danger-bg);  border-color: var(--danger-line); }
.alert-danger .alert__icon  { color: var(--danger); }
.alert-success { color: #166534; background: var(--success-bg); border-color: var(--success-line); }
.alert-success .alert__icon { color: var(--success); }
.alert-warning { color: #92400E; background: var(--warning-bg); border-color: var(--warning-line); }
.alert-warning .alert__icon { color: var(--warning); }

/* ---------- Fields ---------- */
.auth-form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.field__control:hover { border-color: var(--line-strong); }

.field__control:focus-within {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px var(--brand-ring);
}

.field__control.is-invalid { border-color: var(--danger); }
.field__control.is-invalid:focus-within { box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }

.field__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 100%;
    color: #94A3B8;
    transition: color .2s var(--ease);
}

.field__control:focus-within .field__icon { color: var(--brand-700); }

.field__icon svg,
.field__toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field__control input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}

.field__control input::placeholder { color: #A0AEC0; }

/* Keep autofill on-brand instead of the browser's yellow/blue */
.field__control input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 100px var(--surface) inset;
    caret-color: var(--ink);
}

.field__toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: 3px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.field__toggle:hover { color: var(--ink-2); background: var(--canvas); }
.field__toggle:focus-visible { outline: 2px solid var(--brand-600); outline-offset: -2px; }

.field__toggle .icon-eye-off { display: none; }
.field__toggle[aria-pressed="true"] .icon-eye { display: none; }
.field__toggle[aria-pressed="true"] .icon-eye-off { display: block; }

.field__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--warning);
}

.field__hint::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.field__hint[hidden] { display: none; }

.link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-700);
    text-decoration: none;
    border-radius: 4px;
    transition: color .15s ease;
}

.link:hover { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* ---------- Remember me ---------- */
.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-size: 14px;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
}

.check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.check__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.check__box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s var(--ease);
}

.check:hover .check__box { border-color: var(--brand-600); }
.check input:checked + .check__box { background: var(--brand-700); border-color: var(--brand-700); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--brand-ring); }

/* ---------- reCAPTCHA ---------- */
.recaptcha-container {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.recaptcha-container .text-danger { font-size: 12.5px; color: var(--danger); }

/* ---------- Primary button ---------- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 55%, var(--brand-800) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(61, 138, 0, .75);
    color: #fff;
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}

/* light sweep on hover */
.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px -12px rgba(61, 138, 0, .85);
}

.btn-primary:hover::before { left: 120%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 3px; }

.btn-primary__arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s var(--ease);
}

.btn-primary:hover .btn-primary__arrow { transform: translateX(3px); }

.btn-primary__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn-primary.is-loading { cursor: progress; filter: saturate(.85); }
.btn-primary.is-loading .btn-primary__label,
.btn-primary.is-loading .btn-primary__arrow { display: none; }
.btn-primary.is-loading .btn-primary__spinner { display: block; }

/* ---------- Divider & social ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-social svg { width: 20px; height: 20px; }

.btn-social:hover {
    border-color: var(--line-strong);
    background: #FAFBFC;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, .3);
}

.btn-social:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }

.auth-card__signup {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.auth-card__signup .link { font-size: 14px; }

/* ---------- Legal footer ---------- */
.auth-legal {
    width: 100%;
    max-width: 408px;
    margin-top: 32px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: #94A3B8;
}

.auth-legal p + p { margin-top: 4px; }

.auth-legal a {
    color: var(--muted);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
}

.auth-legal a:hover { color: var(--ink-2); text-decoration-color: currentColor; }

/* ==========================================================================
   Password reset request page (auth/passwords/email.blade.php)
   New classes only — nothing above is changed, so the sign-in page is unaffected.
   ========================================================================== */
.auth-steps { counter-reset: none; }

.auth-steps__num {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-700);
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.auth-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s var(--ease);
}

.auth-back:hover { color: var(--ink); background: var(--canvas); }
.auth-back:hover svg { transform: translateX(-3px); }
.auth-back:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.auth-badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-soft), #E4F3D2);
    box-shadow: inset 0 0 0 1px rgba(86, 183, 0, .35), 0 10px 24px -14px rgba(61, 138, 0, .6);
    color: var(--brand-700);
    animation: rise .6s var(--ease) both;
}

.auth-badge::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    border: 1px solid rgba(86, 183, 0, .22);
}

.auth-badge svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-badge--success {
    background: linear-gradient(135deg, var(--success-bg), #DCFCE7);
    color: var(--success);
}

.alert__title {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
}

.field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--danger);
}

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--canvas);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}

.auth-note svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    fill: none;
    stroke: var(--brand-700);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 575.98px) {
    .auth-back { margin-bottom: 20px; }
    .auth-badge { width: 50px; height: 50px; margin-bottom: 18px; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes hero-zoom { to { transform: scale(1); } }

@keyframes glow-pulse {
    0%, 100% { opacity: .75; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes ping {
    75%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes energy {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .auth-hero__media { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large laptops: slightly tighter hero */
@media (max-width: 1280px) {
    .auth-hero__inner { padding: 40px 44px 36px; }
    .auth-features li { padding: 12px 14px; }
}

/* Short desktop screens (e.g. 1366×768, 1280×720): keep everything above the fold */
@media (min-width: 1024px) and (max-height: 800px) {
    .auth-hero__inner { padding-top: 32px; padding-bottom: 28px; }
    .auth-hero__content { padding: 28px 0 24px; }
    .auth-hero__title { margin-top: 16px; font-size: clamp(32px, 3vw, 42px); }
    .auth-hero__lead { margin-top: 12px; font-size: 15.5px; }
    .auth-features { margin-top: 22px; gap: 10px; }
    .auth-features li { padding: 10px 14px; }
    .auth-panel { padding-top: 28px; padding-bottom: 20px; }
    .auth-card__header { margin-bottom: 20px; }
    .auth-form { gap: 14px; }
    .auth-card__signup { margin-top: 18px; }
    .auth-legal { margin-top: 18px; }
}

/* Tablets & below: stacked layout — compact hero banner + form sheet */
@media (max-width: 1023.98px) {
    .auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-hero__inner { padding: 28px 32px 64px; }
    .auth-hero__logo img { width: 128px; }
    .auth-hero__content { margin-top: 36px; padding: 0; max-width: 620px; }
    .auth-hero__title { font-size: clamp(28px, 4.6vw, 38px); }
    .auth-hero__lead { font-size: 15px; }
    .auth-features,
    .auth-hero__footer { display: none; }

    .auth-panel {
        justify-content: flex-start;
        margin-top: -36px;
        padding: 40px 32px 28px;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 32px -18px rgba(16, 24, 40, .18);
        z-index: 1;
    }

    .auth-card,
    .auth-legal { max-width: 460px; }
}

/* Phones */
@media (max-width: 575.98px) {
    body { font-size: 14.5px; }

    .auth-hero__inner { padding: 22px 20px 56px; }
    .auth-hero__logo img { width: 112px; }
    .auth-hero__content { margin-top: 26px; }
    .auth-hero__title { margin-top: 16px; font-size: 26px; }
    .auth-hero__lead { display: none; }
    .auth-chip { font-size: 11px; }

    .auth-panel { padding: 32px 20px 24px; border-radius: 24px 24px 0 0; }
    .auth-card__header { margin-bottom: 22px; }
    .auth-card__header h2 { font-size: 25px; }
    .auth-card__header p { font-size: 14px; }
    .auth-form { gap: 16px; }
    .field__control { height: 50px; }
    .field__control input { font-size: 16px; } /* prevents iOS zoom on focus */
    .auth-legal { margin-top: 26px; }
}

/* Very narrow phones: fit the fixed-width (304px) reCAPTCHA widget */
@media (max-width: 359.98px) {
    .social { grid-template-columns: 1fr; }
    .recaptcha-container .g-recaptcha {
        transform: scale(.88);
        transform-origin: center top;
        margin-bottom: -10px;
    }
}

/* ==========================================================================
   Partner registration page (registration-form.blade.php)
   New classes only, placed last so they can extend the shared auth shell
   without changing the sign-in or password-reset pages.
   ========================================================================== */
.auth-card--wide { max-width: 560px; }

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

/* Let cells shrink to their column and keep inputs top-aligned when a neighbour is taller */
.field-grid > .field {
    min-width: 0;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
}

.field-grid .field__control input { width: 100%; }

.field--full { grid-column: 1 / -1; }

.field__req { color: var(--danger); font-weight: 700; }

.field__help {
    font-size: 12.5px;
    color: var(--muted);
}

.field__control.is-valid { border-color: var(--brand-600); }

/* Password strength meter */
.strength {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
}

.strength__bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    flex: 0 0 72px;
}

.strength__bars i {
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    transition: background .25s var(--ease);
}

.strength[data-level="1"] .strength__bars i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] .strength__bars i:nth-child(-n+2) { background: #F59E0B; }
.strength[data-level="3"] .strength__bars i:nth-child(-n+3) { background: var(--brand-600); }
.strength[data-level="4"] .strength__bars i { background: var(--brand-700); }

.strength[data-level="1"] .strength__label { color: var(--danger); }
.strength[data-level="2"] .strength__label { color: var(--warning); }
.strength[data-level="3"] .strength__label,
.strength[data-level="4"] .strength__label { color: var(--brand-700); }

/* Confirm-password match indicator */
.field__match {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--warning);
}

.field__match::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.field__match.is-ok { color: var(--brand-700); }
.field__match[hidden] { display: none; }

.auth-terms {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.auth-terms .link { font-size: 13px; }

/* Desktop: keep the brand panel in view while the longer form scrolls */
@media (min-width: 1024px) {
    .auth--register .auth-hero {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        height: 100dvh;
    }
}

/* Split layout with a narrow form column: stack the fields */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .field-grid { grid-template-columns: 1fr; }
}

/* Stacked layout (tablet): allow the wider card */
@media (max-width: 1023.98px) {
    .auth-card.auth-card--wide { max-width: 560px; }
}

/* Phones: single column */
@media (max-width: 575.98px) {
    .field-grid { grid-template-columns: 1fr; gap: 16px; }
    .auth-card--wide .auth-card__header h2 { font-size: 23px; }
}

/* Registration: reCAPTCHA block (left-aligned with the fields) */
.recaptcha-container--register {
    justify-items: start;
    gap: 8px;
    min-width: 0;   /* don't let the fixed 304px widget widen the form column on narrow phones */
}

.recaptcha-container--register .g-recaptcha > div {
    border-radius: 4px;
    transition: box-shadow .2s var(--ease);
}

.recaptcha-container--register.is-invalid .g-recaptcha > div {
    box-shadow: 0 0 0 2px var(--danger), 0 0 0 6px rgba(220, 38, 38, .12);
}

.recaptcha-container--register .field__error[hidden] { display: none; }

/* The widget is a fixed 304×78px iframe: scale it on the narrowest phones */
@media (max-width: 359.98px) {
    .recaptcha-container--register .g-recaptcha {
        transform: scale(.9);
        transform-origin: left top;
        margin-bottom: -8px;
    }
}

/* ==========================================================================
   Sign-in page: "check your inbox" notice shown after partner registration
   ========================================================================== */
.verify-notice {
    margin-bottom: 22px;
    padding: 18px 18px 16px;
    border: 1px solid var(--success-line);
    border-radius: 16px;
    background: linear-gradient(180deg, #F3FBEE 0%, var(--success-bg) 100%);
    box-shadow: 0 10px 28px -18px rgba(21, 128, 61, .45);
    animation: rise .45s var(--ease) both;
}

.verify-notice__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.verify-notice__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    box-shadow: 0 8px 18px -10px rgba(61, 138, 0, .8);
    color: #fff;
}

.verify-notice__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verify-notice__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #14532D;
}

.verify-notice__text {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #166534;
    overflow-wrap: anywhere;   /* long email addresses */
}

.verify-notice__text strong { color: #14532D; }

.verify-notice__list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--success-line);
}

.verify-notice__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #166534;
}

.verify-notice__list svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    fill: none;
    stroke: var(--brand-700);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verify-notice__list a {
    font-weight: 700;
    color: var(--brand-800);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.verify-notice__list a:hover { color: #14532D; }
