/* Auth / Login — Design v2 */
.v2-auth-body {
    min-height: 100vh;
    margin: 0;
}

.v2-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.v2-auth-visual {
    position: relative;
    overflow: hidden;
    color: var(--white);
    min-height: 100vh;
}

.v2-auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(20, 12, 8, 0.55), rgba(42, 29, 20, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(196, 163, 90, 0.28), transparent 45%);
}

.v2-auth-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
}

.v2-auth-visual-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 0.85rem;
}

.v2-auth-visual-copy p:last-child {
    margin: 0;
    color: rgba(255, 252, 248, 0.78);
}

.v2-auth-panel {
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(196, 163, 90, 0.12), transparent 55%),
        linear-gradient(180deg, var(--stone), var(--stone-2));
}

.v2-auth-card {
    width: min(420px, 100%);
}

.v2-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
    color: var(--walnut);
    text-decoration: none;
}

.v2-auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.v2-auth-brand span {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
}

.v2-auth-card > h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin: 0 0 0.35rem;
    color: var(--walnut);
    font-weight: 500;
}

.v2-auth-sub {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.v2-auth-form {
    display: grid;
    gap: 1rem;
}

.v2-password-wrap {
    position: relative;
}

.v2-password-wrap input {
    padding-right: 3rem;
}

.v2-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
}

.v2-password-toggle:hover {
    color: var(--walnut);
    background: rgba(61, 43, 31, 0.06);
}

.v2-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.v2-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.92rem;
    cursor: pointer;
}

.v2-auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--walnut);
}

.v2-auth-link {
    color: var(--walnut);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.v2-auth-link:hover {
    color: var(--brass);
}

.v2-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 0.35rem;
}

.v2-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.v2-auth-back:hover {
    color: var(--walnut);
}

.v2-auth-errors {
    background: #fdecea;
    border: 1px solid #f3c1bc;
    color: #9b1c1c;
    padding: 0.8rem 0.95rem;
    margin-bottom: 1rem;
}

.v2-auth-errors p {
    margin: 0;
}

.v2-auth-errors p + p {
    margin-top: 0.35rem;
}

.v2-auth-status {
    background: #e8f6ed;
    border: 1px solid #b7e0c2;
    color: #146c2e;
    padding: 0.8rem 0.95rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .v2-auth {
        grid-template-columns: 1fr;
    }

    .v2-auth-visual {
        min-height: 240px;
    }

    .v2-auth-visual-copy {
        min-height: 240px;
        padding: 1.5rem;
        justify-content: flex-end;
    }

    .v2-auth-visual-copy h1 {
        font-size: 1.7rem;
    }

    .v2-auth-visual-copy p:last-child {
        display: none;
    }
}
