/* ================================================
   Auth Split Layout
   Shared by login.html and signup.html
================================================ */
.auth-split {
    display: flex;
    height: calc(100vh - 72px);
    overflow: hidden;
}

/* ================================================
   Left Hero Panel — 45%
================================================ */
.auth-panel-left {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.auth-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(30,12,3,0.48) 0%,
        rgba(30,12,3,0.72) 50%,
        rgba(30,12,3,0.92) 100%
    );
}

/* Blurred frosted strip at the bottom — sits between the image+overlay (z-index: auto)
   and the content layer (z-index: 2). Blurs the image behind the location footer text. */
.auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 190px;
    background: linear-gradient(
        to top,
        rgba(10,4,1,.62) 0%,
        rgba(10,4,1,.20) 55%,
        transparent 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-mask: linear-gradient(to top, black 35%, transparent 100%);
    mask: linear-gradient(to top, black 35%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.auth-panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 56px 52px;
}

/* Logo at top */
.auth-panel-logo-link {
    display: inline-block;
}

.auth-panel-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.90;
}

/* Tagline block pushed to vertical center */
.auth-panel-body {
    margin: auto 0;
    padding: 0;
}

.auth-panel-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 300;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 20px;
    max-width: 360px;
}

.auth-panel-tagline em {
    font-style: italic;
    font-weight: 400;
}

.auth-panel-sub {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.60);
    max-width: 320px;
}

/* Social icons */
.auth-panel-social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.auth-panel-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.58);
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.auth-panel-social a:hover {
    border-color: rgba(255,255,255,0.65);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Location row at bottom */
.auth-panel-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
}

.auth-panel-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.80);
    letter-spacing: 0.05em;
}

.auth-panel-footer i {
    color: var(--brown-light, #B07D5A);
    font-size: 13px;
}

/* ================================================
   Right Form Panel — 55%
================================================ */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--cream, #FAF8F4);
    padding: 72px 48px 64px;
    overflow-y: auto;
}

.auth-form-card {
    width: 100%;
    max-width: 420px;
}


/* ================================================
   Form Head — title & subtitle
================================================ */
.auth-form-head {
    margin-bottom: 36px;
}

.auth-form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--brown-dark, #1E0C03);
    margin: 0 0 8px;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 14px;
    color: var(--text-light, #9E7558);
    margin: 0;
    line-height: 1.65;
}

/* Thin divider below head */
.auth-form-divider {
    width: 40px;
    height: 1px;
    background: var(--brown-pale, #DFC3A8);
    margin: 20px 0 32px;
}

/* ================================================
   Form Groups
================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--brown-dark, #1E0C03);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border, rgba(61,26,10,0.18));
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    color: var(--brown-dark, #1E0C03);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: rgba(61,26,10,0.28);
}

.form-group input:focus {
    outline: none;
    border-color: var(--brown-primary, #3D1A0A);
    box-shadow: 0 0 0 3px rgba(61,26,10,0.08);
}

/* Password input — keep larger font for dots */
#login-password,
#signup-password,
#confirm-password {
    font-size: 18px;
    letter-spacing: 0.06em;
}

/* ================================================
   Password Show/Hide Toggle
================================================ */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

/* Hide browser-native password reveal button (Edge, IE, Chrome) */
.password-wrapper input[type="password"]::-ms-reveal,
.password-wrapper input[type="password"]::-ms-clear {
    display: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(61,26,10,0.45);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--brown-primary, #3D1A0A);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

#login-password::placeholder,
#signup-password::placeholder,
#confirm-password::placeholder {
    font-size: 14px;
    letter-spacing: 0;
}

/* Two-column name row */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ================================================
   Options Row (Remember me + Forgot password)
================================================ */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mid, #5A3420);
    cursor: pointer;
}

.options input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--brown-primary, #3D1A0A);
    cursor: pointer;
}

.forgot {
    font-size: 13px;
    color: var(--brown-primary, #3D1A0A);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot:hover {
    color: var(--brown-dark, #1E0C03);
}

/* ================================================
   Terms & Conditions Row
================================================ */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.terms-row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--brown-primary, #3D1A0A);
    cursor: pointer;
}

.terms-row label {
    font-size: 13px;
    color: var(--text-mid, #5A3420);
    line-height: 1.6;
    cursor: pointer;
}

.terms-row a {
    color: var(--brown-primary, #3D1A0A);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.terms-row a:hover {
    color: var(--brown-dark, #1E0C03);
}

/* ================================================
   Password Hint
================================================ */
.password-hint {
    font-size: 12px;
    color: var(--text-light, #9E7558);
    margin-top: -12px;
    margin-bottom: 18px;
}

/* ================================================
   Submit Button
================================================ */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--brown-primary, #3D1A0A);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-btn:hover {
    background: var(--brown-dark, #1E0C03);
}

.auth-btn:disabled {
    opacity: 0.60;
    cursor: not-allowed;
}

/* ================================================
   Inline Form Messages (set by JS)
================================================ */
.form-msg {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    min-height: 1.2em;
    line-height: 1.5;
    border-radius: 2px;
    padding: 0;
    transition: all 0.2s;
}

.form-msg:not(:empty) {
    padding: 10px 14px;
}

.form-msg.success {
    color: #1a6b3a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.form-msg.error {
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.form-msg.lockout {
    color: #7c4a1a;
    background: #fef9f0;
    border: 1px solid #c98a4b;
}

/* ================================================
   Auth Switch Link ("Don't have an account?")
================================================ */
.auth-switch {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-light, #9E7558);
    padding-top: 24px;
    border-top: 1px solid var(--border, rgba(61,26,10,0.08));
}

.auth-switch a {
    color: var(--brown-primary, #3D1A0A);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.auth-switch a:hover {
    color: var(--brown-dark, #1E0C03);
}

/* ================================================
   Admin Portal Link (keep for any admin references)
================================================ */
.admin-link {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-light, #9E7558);
    line-height: 1.6;
}

.admin-link a {
    color: var(--brown-primary, #3D1A0A);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.admin-link a:hover {
    color: var(--brown-dark, #1E0C03);
}

/* ================================================
   Responsive — 1024px
================================================ */
@media (max-width: 1024px) {
    .auth-panel-left { flex: 0 0 42%; }
    .auth-panel-content { padding: 48px 40px; }
    .auth-panel-right { padding: 64px 40px 56px; }
}

/* ================================================
   Responsive — 768px (Mobile)
   Hero panel hidden; form fills the full screen
================================================ */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
        min-height: calc(100vh - 72px);
        overflow: visible;
    }

    /* Hide the decorative hero panel entirely on mobile */
    .auth-panel-left {
        display: none;
    }

    /* Form panel expands to full width and centers the card vertically */
    .auth-panel-right {
        flex: 1;
        width: 100%;
        padding: 48px 32px 56px;
        align-items: center;
        justify-content: center;
    }

    .auth-form-card {
        width: 100%;
        max-width: 440px;
    }

    .auth-form-title {
        font-size: 26px;
    }

    .name-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-panel-right {
        padding: 40px 24px 48px;
    }

}