/* ═══════════════════════════════════════════════════════
   Auth — split screen: form (left) + orange panel (right)
   Layout Bootstrap grid se, ye file sirf visuals deti hai.
   ═══════════════════════════════════════════════════════ */

.auth {
    --auth-orange:      #1742c4;
    --auth-orange-dark: #0f319c;
    --auth-border:      #7A7A7A;
    --auth-text:        #222222;
    --auth-muted:       #8b93a1;

    background-color: #fff;
}

/* ═══════════ LEFT: form ═══════════ */

.auth .auth-form {
    width: 100%;
    max-width: 60%;
}

.auth .auth-form__title {
    font-size: 32px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 10px;
}

.auth .auth-form__wave {
    display: inline-block;
    margin-left: 2px;
    font-size: 32px;
}

.auth .auth-form__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--auth-text);
    margin-bottom: 44px;
}

/* ─── Inputs — Bootstrap .form-control ke upar ─── */

.auth .auth-input {
    /* !important mat lagao — focus/invalid states isse override nahi kar paate */
    border-color: var(--auth-border) !important;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 12px;
    color: var(--auth-text);
    border-radius: 100px;
}

.auth .auth-input:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, .1);
}

.auth .auth-input::placeholder {
    color: #b0b7c1;
}

/* Chrome autofill ka peela background hata do */
.auth .auth-input:-webkit-autofill,
.auth .auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--auth-text);
}

.auth .auth-form__forgot {
    font-size: 14px;
    color: var(--auth-orange);
    text-decoration: none;
}

.auth .auth-form__forgot:hover {
    text-decoration: underline;
}

.auth .auth-form__submit {
    width: 100%;
    border: none;
    border-radius: 100px;
    padding: 11px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background-color: var(--auth-orange);
    cursor: pointer;
    transition: background-color .2s ease, transform .05s ease;
}

.auth .auth-form__submit:hover  { background-color: var(--auth-orange-dark); }
.auth .auth-form__submit:active { transform: translateY(1px); }

/* ═══════════ RIGHT: orange panel ═══════════ */

.auth .auth-panel {
    position: relative;
    overflow: hidden;

    /* Swirl texture — asli SVG. Koi ::before overlay nahi chahiye. */
    /* background: var(--auth-orange) url('../img/auth-swirl.svg') center / cover no-repeat; */

    background: linear-gradient(to bottom, #1742c4 0%, #96AAE4 100%);
    /* Bottom 0 — card screen ke neeche tak bleed karta hai */
    padding: 20px 40px 20px 40px;
    height: 100vh;
}

/* ─── Frosted glass card ─── */

.auth .auth-panel__card {
    position: relative;
    z-index: 1;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: rgba(255, 255, 255, .17);
    border-radius: 22px 22px 22px 22px;   /* sirf top corners */
    padding: 38px 38px 0;

    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
}

.auth .auth-panel__text {
    font-size: 30px;
    line-height: 1.42;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    max-width: 92%;
}

.auth .auth-panel__rule {
    display: block;
    width: 40%;
    height: 3px;
    border-radius: 2px;
    background: #fff;
}

/* ─── House — card ke andar, bottom pe chipki ─── */

.auth .auth-panel__figure {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 0;

    /* Card ki side padding cancel — image edge tak jaati hai */
    margin-left: -44px;
    margin-right: -44px;
}

.auth .auth-panel__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: scale-down;
}

/* ═══════════ Floating badges ═══════════ */

.auth .auth-badge {
    position: absolute;
    z-index: 2;

    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #fff;
    color: var(--auth-orange);
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.auth .auth-badge svg{
    width: 45px;
    height: 45px;
}

/* Back to login link — forgot/reset pages pe */

.auth .auth-form__back {
    display: inline-block;
    font-size: 12px;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.auth .auth-form__back:hover {
    color: var(--auth-orange);
}

/*
   Manual error message.
   Bootstrap ka .invalid-feedback .input-group ke andar sibling nahi ban paata,
   isliye group ke bahar apna class use kar rahe hain.
*/
.auth .auth-form__error {
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--bs-danger, #dc3545);
}

/*
   Badge ka CENTER card ke border pe baithta hai — aadha andar, aadha bahar.
   Panel ka side padding 40px hai, isliye right/left 40px + translateX(±50%).
*/
.auth .auth-badge--top {
    top: 32%;
    right: 40px;
    transform: translateX(50%);
}

.auth .auth-badge--bottom {
    top: 50%;
    left: 40px;
    transform: translateX(-50%);
}

/* ═══════════ Password eye (optional) ═══════════ */

/* ═══════════ Password eye toggle ═══════════ */

/* ═══════════ Password eye toggle ═══════════ */

/*
   Border WRAPPER pe hai, input/eye dono borderless.
   Pehle dono pe alag border tha → seam dikhta tha aur hover/focus pe
   aadha orange aadha grey ho jaata tha.
*/
.auth .auth-input-group {
    display: flex;
    align-items: stretch;   /* eye poori height le — align-items:center se short dikhta tha */
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}


/* Input aur eye — dono ka apna border/bg/shadow khatam */
.auth .auth-input-group .auth-input,
.auth .auth-input-group .auth-eye {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.auth .auth-input-group .auth-input {
    padding: 0.5rem 1rem 1rem 1rem;
    border-radius: 100px 0 0 100px;
}

/* Bootstrap focus/invalid ke border-color aur ring ko roko —
   wrapper hi ye states dikhata hai */
.auth .auth-input-group .auth-input:focus,
.auth .auth-input-group .auth-input.is-invalid,
.auth .auth-input-group .auth-input.is-invalid:focus {
    border: 0 !important;
    box-shadow: none !important;
}

/* Bootstrap ka ⚠ background icon — pill me bhadda lagta hai */
.auth .auth-input-group .auth-input.is-invalid {
    background-image: none;
    padding-right: 0;
}

.auth .auth-input-group .auth-eye {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 1rem 1rem;
    color: var(--auth-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color .2s ease;
}
/* Hover — SIRF icon ka color badle, border ko haath mat lagao */
.auth .auth-input-group .auth-eye:hover {
    color: var(--auth-text);
    background: transparent !important;
    border: 0 !important;
}

/* Focus — yahi ek jagah orange hota hai */
.auth .auth-input-group:focus-within {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, .1);
}

/* Invalid — wrapper laal */
.auth .auth-input-group:has(.auth-input.is-invalid) {
    border-color: var(--bs-danger, #dc3545);
}

.auth .auth-input-group:has(.auth-input.is-invalid):focus-within {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1);
}
.auth .auth-input-group.is-invalid {
    border-color: var(--bs-danger, #dc3545);
}

.auth .auth-input-group.is-invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .1);
}
/* Bootstrap ka ⚠ background icon — pill me bhadda lagta hai */
.auth .auth-input.is-invalid {
    background-image: none;
    padding-right: 16px;
}

/* ═══════════ Responsive ═══════════ */

@media (max-width: 575.98px) {
    .auth .auth-form__title    { font-size: 23px; }
    .auth .auth-form__subtitle { margin-bottom: 32px; }
}
