/* ─── Auth Page (Login / Register) ─────────────────────── */
.tiwa-auth {
    padding: 80px 0 72px;
    background: #f8f5ef;
}

.tiwa-auth__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ─── Header with illustration ──────────────────────────── */
.tiwa-auth__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    max-width: 100%;
    margin-bottom: 52px;
}

.tiwa-auth__header-text {
    min-width: 0;
}

.tiwa-auth__heading {
    margin: 0 0 20px;
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(40px, 4.2vw, 58px);
    font-weight: 500;
    line-height: 1.05;
}

.tiwa-auth__subheading {
    max-width: 560px;
    margin: 0;
    color: #4f4943;
    font-size: 18px;
    line-height: 1.8;
}

.tiwa-auth__header-illustration {
    flex-shrink: 0;
    width: clamp(140px, 16vw, 210px);
    opacity: .55;
}

.tiwa-auth__header-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Two-column grid ───────────────────────────────────── */
.tiwa-auth__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0;
    margin-bottom: 48px;
}

.tiwa-auth__grid--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

/* ─── OR divider ────────────────────────────────────────── */
.tiwa-auth__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    padding-top: 60px;
}

.tiwa-auth__divider::before,
.tiwa-auth__divider::after {
    content: '';
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #d9cabb, transparent);
    min-height: 60px;
}

.tiwa-auth__divider span {
    padding: 10px 0;
    color: #9b8f85;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── Form cards ────────────────────────────────────────── */
.tiwa-auth__card {
    padding: clamp(36px, 4vw, 52px) clamp(28px, 3.5vw, 48px);
    border: 1px solid #e7ded2;
    border-radius: 14px;
    background: #fff;
}

.tiwa-auth__card-title {
    margin: 0 0 32px;
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 500;
    line-height: 1.1;
}

/* ─── Fields ────────────────────────────────────────────── */
.tiwa-auth-form__field {
    margin-bottom: 22px;
}

.tiwa-auth-form__field label {
    display: block;
    margin-bottom: 9px;
    color: #292622;
    font-size: 13px;
    font-weight: 600;
}

.tiwa-auth-form__field label .required {
    color: #b98539;
}

/* Forgot password — gold, standalone, below input */
.tiwa-auth-form__forgot {
    display: inline-block;
    margin-bottom: 6px;
    color: #b98539;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.tiwa-auth-form__forgot:hover,
.tiwa-auth-form__forgot:focus-visible {
    color: #9b6a27;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tiwa-auth-form__field input.input-text {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1px solid #cfc4b8;
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
    color: #292622;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .22s ease, box-shadow .22s ease;
    box-sizing: border-box;
}

.tiwa-auth-form__field input.input-text:focus {
    outline: 0;
    border-color: #b98539;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 133, 57, .13);
}

.tiwa-auth-form__field input.input-text::placeholder {
    color: #b0a89e;
}

.tiwa-auth-form__auto-note {
    margin: 0 0 24px;
    color: #6f6358;
    font-size: 13px;
    line-height: 1.6;
}

/* ─── Actions row ───────────────────────────────────────── */
.tiwa-auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.tiwa-auth-form__actions--register {
    justify-content: flex-end;
}

.tiwa-auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f4943;
    font-size: 13px;
    cursor: pointer;
}

.tiwa-auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b98539;
    flex-shrink: 0;
}

/* ─── Buttons — full width ──────────────────────────────── */
.tiwa-auth-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    margin-top: 20px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.tiwa-auth-form__submit:hover,
.tiwa-auth-form__submit:focus-visible {
    background: #b98539;
    border-color: #b98539;
    transform: translateY(-1px);
}

.tiwa-auth-form__submit--register {
    background: transparent;
    border-color: #b98539;
    color: #b98539;
}

.tiwa-auth-form__submit--register:hover,
.tiwa-auth-form__submit--register:focus-visible {
    background: #b98539;
    color: #fff;
}

/* ─── Benefits — 5 feature cards ───────────────────────── */
.tiwa-auth__benefits {
    margin-top: 8px;
}

.tiwa-auth__benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.tiwa-auth__benefit-card {
    padding: clamp(20px, 2.5vw, 30px) 20px;
    border: 1px solid #e7ded2;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.tiwa-auth__benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fdf6ec;
    color: #c69a4a;
}

.tiwa-auth__benefit-icon svg {
    width: 22px;
    height: 22px;
}

.tiwa-auth__benefit-card h3 {
    margin: 0 0 8px;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
}

.tiwa-auth__benefit-card p {
    margin: 0;
    color: #6f6358;
    font-size: 12px;
    line-height: 1.55;
}

/* ─── WooCommerce notices inside auth page ──────────────── */
.tiwa-auth .woocommerce-notices-wrapper,
.tiwa-auth .woocommerce-error,
.tiwa-auth .woocommerce-message,
.tiwa-auth .woocommerce-info {
    max-width: 1100px;
    margin-bottom: 24px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tiwa-auth__benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .tiwa-auth__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tiwa-auth__grid--single {
        grid-template-columns: 1fr;
    }

    .tiwa-auth__divider {
        flex-direction: row;
        padding: 24px 0;
    }

    .tiwa-auth__divider::before,
    .tiwa-auth__divider::after {
        flex: 1;
        width: auto;
        height: 1px;
        min-height: unset;
        background: linear-gradient(to right, transparent, #d9cabb, transparent);
    }

    .tiwa-auth__header {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .tiwa-auth__header-illustration {
        display: none;
    }

    .tiwa-auth {
        padding: 60px 0 56px;
    }

    .tiwa-auth__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tiwa-auth {
        padding: 48px 0 44px;
    }

    .tiwa-auth__heading {
        font-size: 36px;
    }

    .tiwa-auth__subheading {
        font-size: 16px;
    }

    .tiwa-auth__card {
        padding: 32px 22px;
    }

    .tiwa-auth__benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tiwa-auth-form__actions {
        flex-wrap: wrap;
        gap: 14px;
    }
}


.tiwa-auth__grid--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

/* ─── Form cards ────────────────────────────────────────── */
.tiwa-auth__card {
    padding: clamp(32px, 4vw, 52px);
    border: 1px solid #e7ded2;
    border-radius: 14px;
    background: #fff;
}

.tiwa-auth__card-title {
    margin: 0 0 32px;
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 500;
    line-height: 1.1;
}

/* ─── Fields ────────────────────────────────────────────── */
.tiwa-auth-form__field {
    margin-bottom: 22px;
}

.tiwa-auth-form__field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
    color: #292622;
    font-size: 13px;
    font-weight: 600;
}

.tiwa-auth-form__field label .required {
    color: #b98539;
}

.tiwa-auth-form__forgot {
    color: #9b6a27;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-left: auto;
}

.tiwa-auth-form__forgot:hover,
.tiwa-auth-form__forgot:focus-visible {
    text-decoration: underline;
}

.tiwa-auth-form__field input.input-text {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #cfc4b8;
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
    color: #292622;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .22s ease, box-shadow .22s ease;
    box-sizing: border-box;
}

.tiwa-auth-form__field input.input-text:focus {
    outline: 0;
    border-color: #b98539;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 133, 57, .13);
}

.tiwa-auth-form__field input.input-text::placeholder {
    color: #b0a89e;
}

.tiwa-auth-form__auto-note {
    margin: 0 0 24px;
    color: #6f6358;
    font-size: 13px;
    line-height: 1.6;
}

/* ─── Actions row ───────────────────────────────────────── */
.tiwa-auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.tiwa-auth-form__actions--register {
    justify-content: flex-end;
}

.tiwa-auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f4943;
    font-size: 13px;
    cursor: pointer;
}

.tiwa-auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b98539;
    flex-shrink: 0;
}

/* ─── Submit buttons ────────────────────────────────────── */
.tiwa-auth-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 2px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    text-transform: none;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
    white-space: nowrap;
}

.tiwa-auth-form__submit:hover,
.tiwa-auth-form__submit:focus-visible {
    background: #b98539;
    border-color: #b98539;
    transform: translateY(-1px);
}

.tiwa-auth-form__submit--register {
    background: transparent;
    border-color: #b98539;
    color: #b98539;
}

.tiwa-auth-form__submit--register:hover,
.tiwa-auth-form__submit--register:focus-visible {
    background: #b98539;
    color: #fff;
}

/* ─── Benefits strip ────────────────────────────────────── */
.tiwa-auth__benefits {
    padding: 36px 44px;
    border: 1px solid #e7ded2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 60px);
    flex-wrap: wrap;
}

.tiwa-auth__benefits-title {
    margin: 0;
    color: var(--color-black);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.tiwa-auth__benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.tiwa-auth__benefits-list li {
    position: relative;
    padding-left: 22px;
    color: #4f4943;
    font-size: 14px;
}

.tiwa-auth__benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c69a4a;
    /* checkmark via SVG mask */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ─── WooCommerce notices inside auth page ──────────────── */
.tiwa-auth .woocommerce-notices-wrapper,
.tiwa-auth .woocommerce-error,
.tiwa-auth .woocommerce-message,
.tiwa-auth .woocommerce-info {
    max-width: 1100px;
    margin-bottom: 24px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 820px) {
    .tiwa-auth__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tiwa-auth__grid--single {
        grid-template-columns: 1fr;
    }

    .tiwa-auth {
        padding: 60px 0 56px;
    }

    .tiwa-auth__header {
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .tiwa-auth {
        padding: 48px 0 44px;
    }

    .tiwa-auth__heading {
        font-size: 36px;
    }

    .tiwa-auth__subheading {
        font-size: 16px;
    }

    .tiwa-auth__card {
        padding: 28px 22px;
    }

    .tiwa-auth__benefits {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 16px;
    }

    .tiwa-auth__benefits-list {
        gap: 10px 20px;
    }

    .tiwa-auth-form__actions {
        flex-wrap: wrap;
        gap: 14px;
    }
}
