
/* =========================================================
   GOKRIPADHAM — STANDALONE AUTHENTICATION PAGE
========================================================= */

.auth-body {
    min-height: 100vh;
    margin: 0;
    background: #fffaf3;
    color: var(--text, #30251b);
}

.auth-body *,
.auth-body *::before,
.auth-body *::after {
    box-sizing: border-box;
}

.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.auth-story {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    min-width: 0;
    width: 60%;
    padding: clamp(20px, 5vw, 82px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 12%, rgba(217, 112, 34, .17), transparent 38%),
        linear-gradient(145deg, #302317 0%, #40301e 55%, #2c2015 100%);
    color: #fff7eb;
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    border: 1px solid rgba(255, 235, 207, .07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-story::before {
    top: -190px;
    right: -180px;
    width: 540px;
    height: 540px;
}

.auth-story::after {
    right: -90px;
    bottom: -230px;
    width: 470px;
    height: 470px;
}

.auth-story-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 590px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(45px, 7vh, 82px);
    color: #fff8ed;
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(255, 239, 218, .15);
    border-radius: 13px;
    background: rgba(255, 246, 232, .08);
    color: #ef852e;
    font-size: 1.1rem;
}

.auth-eyebrow {
    margin: 0 0 22px;
    color: #d96818;
    font-size: .73rem;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.6;
}

.auth-story > .auth-story-content > .auth-eyebrow {
    color: #f0a13f;
}

.auth-story h1 {
    max-width: 650px;
    margin: 0;
    color: #fff8ed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.65rem, 4.1vw, 4.65rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.auth-story h1 span {
    color: #e87926;
}

.auth-story-description {
    max-width: 460px;
    margin: 25px 0 0;
    color: #e0d0bd;
    font-size: .98rem;
    line-height: 1.9;
}

/* =========================================================
   LEFT PANEL BENEFITS
========================================================= */

.auth-benefits {
    display: grid;
    gap: 21px;
    margin-top: 38px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-benefit-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 239, 218, .07);
    border-radius: 12px;
    background: rgba(255, 247, 235, .08);
    color: #ed812a;
    font-size: 1rem;
}

.auth-benefit strong {
    display: block;
    color: #fff6e9;
    font-size: .88rem;
    font-weight: 800;
}

.auth-benefit p {
    margin: 5px 0 0;
    color: #cdbba5;
    font-size: .79rem;
    line-height: 1.5;
}

.auth-story-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(42px, 8vh, 88px);
    color: #d8c4aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .89rem;
    font-style: italic;
}

.auth-story-footer i {
    color: #e79a38;
}

/* =========================================================
   RIGHT PANEL
========================================================= */

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 40%;
    padding: 45px clamp(25px, 5.1vw, 86px);
    background: var(--surface, #fffaf3);
}

.auth-form-card {
    width: 100%;
    max-width: 470px;
    margin: auto;
}

.auth-mobile-brand {
    display: none;
}

.auth-heading {
    margin-bottom: 27px;
}

.auth-heading .auth-eyebrow {
    margin-bottom: 10px;
}

.auth-heading h2 {
    margin: 0;
    color: var(--text, #30251b);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.5vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.auth-heading > p:last-child {
    margin: 11px 0 0;
    color: var(--text-muted, #81766a);
    font-size: .88rem;
    line-height: 1.7;
}

/* =========================================================
   FORM MODE TABS
========================================================= */

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 25px;
    padding: 5px;
    border: 1px solid var(--border, #e8ded2);
    border-radius: 11px;
    background: var(--background, #f8f2e9);
}

.auth-tab {
    min-width: 0;
    min-height: 43px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted, #81766a);
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.auth-tab.is-active {
    background: var(--surface, #fffaf3);
    color: var(--primary, #d96818);
    box-shadow: 0 2px 8px rgba(50, 34, 20, .09);
}

.auth-tab:hover:not(.is-active) {
    color: var(--text, #30251b);
}

/* =========================================================
   FORMS
========================================================= */

.auth-panel[hidden] {
    display: none !important;
}

.auth-panel.is-active {
    animation: authFadeIn .18s ease both;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.auth-field label {
    color: var(--text, #30251b);
    font-size: .81rem;
    font-weight: 800;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    z-index: 1;
    color: #918578;
    font-size: .92rem;
    pointer-events: none;
}

.auth-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 76px 12px 43px;
    border: 1px solid var(--border, #e5d9cb);
    border-radius: 10px;
    outline: none;
    background: var(--surface, #fffaf3);
    color: var(--text, #30251b);
    font: inherit;
    font-size: .87rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-input-wrap input::placeholder {
    color: #a3988b;
    opacity: 1;
}

.auth-input-wrap input:focus {
    border-color: var(--primary, #d96818);
    box-shadow: 0 0 0 3px rgba(217, 104, 24, .12);
}

.auth-input-wrap input[aria-invalid="true"] {
    border-color: #c83e3e;
    box-shadow: 0 0 0 2px rgba(200, 62, 62, .08);
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    padding: 6px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted, #81766a);
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--primary, #d96818);
}

.auth-field-hint {
    color: var(--text-muted, #81766a);
    font-size: .74rem;
    line-height: 1.5;
}

.auth-field-error {
    display: none;
    color: #bc3434;
    font-size: .77rem;
    line-height: 1.5;
}

.auth-field-error:not(:empty) {
    display: block;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 49px;
    margin-top: 4px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(100deg, #d96010, #e57620);
    color: #fff;
    font: inherit;
    font-size: .86rem;
    font-weight: 850;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease, opacity .18s ease;
}

.auth-submit:hover {
    filter: brightness(.96);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .7;
}

/* =========================================================
   INLINE SERVER ERRORS
========================================================= */

.auth-message {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: .81rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.auth-message strong {
    display: block;
    margin-bottom: 4px;
}

.auth-message ul {
    margin: 4px 0 0;
    padding-left: 19px;
}

.auth-message li + li {
    margin-top: 3px;
}

.auth-message-error {
    border-color: #e8b5b0;
    background: #fff0ed;
    color: #982f29;
}

.auth-message-success {
    border-color: #a6d8b7;
    background: #edf9f0;
    color: #21683c;
}

.auth-message-icon {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #c84b40;
    color: #fff;
    font-size: .7rem;
}

/* =========================================================
   FORM FOOTER LINKS
========================================================= */

.auth-switch-text {
    margin: 2px 0 0;
    color: var(--text-muted, #81766a);
    font-size: .81rem;
    line-height: 1.7;
    text-align: center;
}

.auth-switch-text button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary, #d96818);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.auth-switch-text button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 27px;
    color: var(--text-muted, #81766a);
    font-size: .79rem;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    transition: color .18s ease;
}

.auth-back-link:hover {
    color: var(--primary, #d96818);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.auth-body button:focus-visible,
.auth-body a:focus-visible,
.auth-body input:focus-visible {
    outline: 2px solid var(--primary, #d96818);
    outline-offset: 3px;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .auth-layout {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .auth-story {
        padding: 38px;
    }

    .auth-story h1 {
        font-size: clamp(2.5rem, 4.4vw, 3.6rem);
    }

    .auth-form-side {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 760px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: auto;
        padding: 29px 25px 34px;
    }

    .auth-brand {
        margin-bottom: 35px;
    }

    .auth-story h1 {
        max-width: 590px;
        font-size: clamp(2.4rem, 8vw, 3.5rem);
    }

    .auth-story-description {
        margin-top: 17px;
        font-size: .91rem;
    }

    .auth-benefits {
        gap: 16px;
        margin-top: 25px;
    }

    .auth-story-footer {
        margin-top: 28px;
    }

    .auth-form-side {
        padding: 37px 24px 45px;
    }

    .auth-form-card {
        max-width: 480px;
    }
}



@media (prefers-reduced-motion: reduce) {
    .auth-panel.is-active {
        animation: none;
    }

    .auth-body *,
    .auth-body *::before,
    .auth-body *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


.auth-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #382719;
    background-image:
        linear-gradient(
            90deg,
            rgba(43, 29, 17, 0.18) 0%,
            rgba(43, 29, 17, 0.08) 55%,
            rgba(43, 29, 17, 0.02) 100%
        ),
        url("../images/auth-gokripadham.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.auth-story::before,
.auth-story::after {
    display: none;
}

.auth-story-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.auth-story h1 span {
    display: block;
    color: #f18a32;
}


@media (max-width: 480px) {
    .auth-story {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 100vh;
    }

    .auth-story-content {
        display: none;
    }
    
    .auth-tabs {
        border: 1px solid var(--border, #ddc2a0);
        background: var(--background, #e7d6bc);
    }

    .auth-form-side {
        width: 100%;
    }

    .auth-form-card {
        z-index: 2;
    }

    .auth-switch-text {
        color: var(--text-muted, #ffffff);
    }

    .auth-switch-text button {
        padding: 0px 6px;
        border: 0;
        background: #0000008a;
        color: var(--primary);
    }

    .auth-back-link {
        color: var(--text-muted, #ffffff);
    }
}

@media (max-width: 420px) {
    .auth-story {
        padding: 24px 20px 28px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }

    .auth-story h1 {
        font-size: 2.25rem;
    }

    .auth-form-side {
        padding: 31px 19px 38px;
    }

    .auth-heading h2 {
        font-size: 1.85rem;
    }

    .auth-form {
        gap: 17px;
    }
}