/* Guest account modals: a calm, web-first form system with flat, premium surfaces. */
.td-guest-auth-modal .td-modal__backdrop {
    background: rgba(38, 30, 20, .62);
    backdrop-filter: blur(8px);
}

.td-guest-auth-modal .td-modal__panel {
    width: min(calc(100% - 32px), 710px);
    max-height: min(820px, calc(100vh - 32px));
    border: 1px solid #d9c49e;
    border-radius: 24px;
    background: #fdfaf4;
    box-shadow: 0 20px 44px rgba(31, 23, 14, .2);
}

#td-guest-login-modal .td-modal__panel {
    width: min(calc(100% - 32px), 510px);
}

.td-guest-auth-modal .td-modal__header {
    padding: 27px 30px 23px;
    border-bottom-color: #e3d2b2;
    background: #fffdf8;
}

.td-guest-auth-modal .td-modal__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 9px;
    border: 1px solid #d7e4c5;
    border-radius: 999px;
    color: #426a27;
    background: #f2f7e9;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.td-guest-auth-modal .td-modal__title {
    color: #30251a;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.td-guest-auth-modal .td-modal__subtitle {
    max-width: 550px;
    margin-top: 8px;
    color: #786a57;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.td-guest-auth-modal .td-modal__close {
    width: 38px;
    height: 38px;
    border-color: #ddc9a8;
    border-radius: 12px;
    color: #5b4832;
    background: #fffdf8;
    font-size: 17px;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.td-guest-auth-modal .td-modal__close:hover,
.td-guest-auth-modal .td-modal__close:focus-visible {
    border-color: #b79561;
    color: #352717;
    background: #f8efde;
    outline: none;
}

.td-guest-auth-modal__body {
    padding: 24px 30px 28px;
}

.td-guest-auth-modal__form {
    gap: 18px;
}

.td-guest-auth-modal__fields {
    gap: 17px 18px;
}

.td-guest-auth-modal__section-heading {
    display: flex;
    min-height: 34px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eadfca;
}

.td-guest-auth-modal__section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #473721;
    font-size: 13px;
    font-weight: 900;
}

.td-guest-auth-modal__section-heading span i {
    color: #507d2f;
    font-size: 13px;
}

.td-guest-auth-modal__section-heading small {
    color: #8b7a65;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
}

.td-guest-auth-modal__section-heading--security {
    margin-top: 3px;
}

.td-guest-auth-modal__field {
    gap: 7px;
}

.td-guest-auth-modal__field > label {
    color: #4c3a24;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -.01em;
}

.td-guest-auth-modal__field > label span {
    margin-left: 3px;
    color: #9b8973;
    font-size: 10px;
    font-weight: 700;
}

.td-guest-auth-modal .form-control,
.td-guest-auth-modal .form-select {
    min-height: 48px;
    border-color: #cfb078;
    border-radius: 12px;
    color: #312619;
    background: #fffdf9;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.td-guest-auth-modal .form-control::placeholder {
    color: #aa9b88;
    opacity: 1;
}

.td-guest-auth-modal .form-control:hover,
.td-guest-auth-modal .form-select:hover {
    border-color: #b99560;
}

.td-guest-auth-modal .form-control:focus,
.td-guest-auth-modal .form-select:focus {
    border-color: #4b772b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(82, 122, 45, .12);
}

.td-guest-auth-modal__password-toggle {
    width: 32px;
    height: 32px;
    right: 7px;
    border-radius: 9px;
    color: #7c6b54;
}

.td-guest-auth-modal__password-toggle:hover,
.td-guest-auth-modal__password-toggle:focus-visible {
    color: #416a27;
    background: #eff5e7;
}

.td-guest-auth-modal__password-meter {
    gap: 6px;
    margin-top: 2px;
}

.td-guest-auth-modal__password-meter > div {
    height: 4px;
    border-radius: 4px;
    background: #e6decf;
}

.td-guest-auth-modal__password-strength {
    color: #8a7963;
    font-size: 10px;
}

.td-guest-auth-modal__password-strength strong {
    color: #4d3d28;
}

.td-guest-auth-modal__password-tools-row {
    gap: 10px;
}

.td-guest-auth-modal .td-guest-auth-modal__password-generate {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #cfb078;
    border-radius: 10px;
    color: #5b4325;
    background: #fffdf9;
    box-shadow: none;
    font-size: 11px;
    font-weight: 850;
}

.td-guest-auth-modal .td-guest-auth-modal__password-generate:hover,
.td-guest-auth-modal .td-guest-auth-modal__password-generate:focus-visible {
    border-color: #b28a4f;
    color: #3f6724;
    background: #fff7e8;
    box-shadow: none;
}

.td-guest-auth-modal__password-status {
    color: #85735e;
    font-size: 10px;
}

.td-guest-auth-modal__generated-password {
    padding: 7px;
    border-color: #c8dbaf;
    border-radius: 12px;
    background: #f4f8ed;
}

.td-guest-auth-modal__terms {
    gap: 9px;
    color: #75634e;
    font-size: 11px;
}

.td-guest-auth-modal__terms input {
    width: 17px;
    height: 17px;
    margin-top: 0;
}

.td-guest-auth-modal__terms a,
.td-guest-auth-modal__switch a,
.td-guest-auth-modal__forgot a {
    color: #426a27;
    font-weight: 850;
}

.td-guest-auth-modal .td-guest-auth-modal__submit {
    min-height: 52px;
    margin-top: 2px;
    border: 1px solid #416a27;
    border-radius: 13px;
    color: #fff;
    background: #426a27;
    box-shadow: none;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: background .18s ease, border-color .18s ease;
}

.td-guest-auth-modal .td-guest-auth-modal__submit:hover,
.td-guest-auth-modal .td-guest-auth-modal__submit:focus-visible {
    border-color: #35581f;
    background: #365c20;
    box-shadow: none;
    outline: none;
}

.td-guest-auth-modal__switch {
    gap: 6px;
    padding-top: 2px;
    color: #83725e;
    font-size: 11px;
}

html[data-td-theme="dark"] .td-guest-auth-modal .td-modal__panel {
    border-color: #5e543f;
    background: #272016;
}

html[data-td-theme="dark"] .td-guest-auth-modal .td-modal__header {
    border-bottom-color: #514631;
    background: #2c2419;
}

html[data-td-theme="dark"] .td-guest-auth-modal .td-modal__title,
html[data-td-theme="dark"] .td-guest-auth-modal__field > label,
html[data-td-theme="dark"] .td-guest-auth-modal__section-heading span {
    color: #f7efe1;
}

html[data-td-theme="dark"] .td-guest-auth-modal .td-modal__subtitle,
html[data-td-theme="dark"] .td-guest-auth-modal__section-heading small,
html[data-td-theme="dark"] .td-guest-auth-modal__terms,
html[data-td-theme="dark"] .td-guest-auth-modal__switch {
    color: #c6b9a7;
}

html[data-td-theme="dark"] .td-guest-auth-modal__section-heading {
    border-bottom-color: #514631;
}

html[data-td-theme="dark"] .td-guest-auth-modal .form-control,
html[data-td-theme="dark"] .td-guest-auth-modal .form-select {
    border-color: #67563d;
    color: #f8f0e4;
    background: #211a12;
}

html[data-td-theme="dark"] .td-guest-auth-modal .form-control:focus,
html[data-td-theme="dark"] .td-guest-auth-modal .form-select:focus {
    border-color: #89ad5c;
    background: #1d170f;
}

html[data-td-theme="dark"] .td-guest-auth-modal .td-guest-auth-modal__password-generate {
    border-color: #67563d;
    color: #f1dfc1;
    background: #2c2419;
}

@media (max-width: 575.98px) {
    .td-guest-auth-modal .td-modal__panel,
    #td-guest-login-modal .td-modal__panel {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .td-guest-auth-modal .td-modal__header {
        padding: 21px 20px 18px;
    }

    .td-guest-auth-modal__body {
        padding: 19px 20px 22px;
    }

    .td-guest-auth-modal .td-modal__title {
        font-size: 23px;
    }

    .td-guest-auth-modal__section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .td-guest-auth-modal__section-heading small {
        text-align: left;
    }
}

/* Keep the complete access request visible on typical desktop viewports. */
#td-guest-register-modal .td-modal__panel {
    max-height: calc(100vh - 20px);
}

#td-guest-register-modal .td-modal__header {
    padding: 19px 28px 16px;
}

#td-guest-register-modal .td-modal__kicker {
    min-height: 21px;
    margin-bottom: 6px;
    padding-inline: 8px;
    font-size: 9px;
}

#td-guest-register-modal .td-modal__title {
    font-size: 25px;
}

#td-guest-register-modal .td-modal__subtitle {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

#td-guest-register-modal .td-modal__body {
    padding: 16px 28px 18px;
    overflow: visible;
}

#td-guest-register-modal .td-guest-auth-modal__form {
    gap: 12px;
}

#td-guest-register-modal .td-guest-auth-modal__fields {
    gap: 11px 16px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading {
    min-height: 25px;
    padding-bottom: 7px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading span {
    gap: 6px;
    font-size: 11px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading span i {
    font-size: 11px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading small {
    font-size: 9px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading--security {
    margin-top: 0;
}

#td-guest-register-modal .td-guest-auth-modal__field {
    gap: 5px;
}

#td-guest-register-modal .td-guest-auth-modal__field > label {
    font-size: 11px;
}

#td-guest-register-modal .td-guest-auth-modal__field > label span {
    font-size: 9px;
}

#td-guest-register-modal .form-control,
#td-guest-register-modal .form-select {
    min-height: 43px;
    font-size: 13px;
}

#td-guest-register-modal .td-guest-auth-modal__password-toggle {
    width: 29px;
    height: 29px;
    right: 6px;
}

#td-guest-register-modal .td-guest-auth-modal__password-meter {
    gap: 5px;
    margin-top: 0;
}

#td-guest-register-modal .td-guest-auth-modal__password-meter > div {
    height: 3px;
}

#td-guest-register-modal .td-guest-auth-modal__password-meter-field {
    gap: 2px;
    margin-top: 0;
}

#td-guest-register-modal .td-guest-auth-modal__password-strength,
#td-guest-register-modal .td-guest-auth-modal__password-status {
    font-size: 9px;
}

#td-guest-register-modal .td-guest-auth-modal__password-tools {
    gap: 5px;
}

#td-guest-register-modal .td-guest-auth-modal__password-tools-row {
    gap: 8px;
}

#td-guest-register-modal .td-guest-auth-modal__password-generate {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 10px;
}

#td-guest-register-modal .td-guest-auth-modal__terms {
    gap: 8px;
    font-size: 10px;
}

#td-guest-register-modal .td-guest-auth-modal__terms input {
    width: 15px;
    height: 15px;
}

#td-guest-register-modal .td-guest-auth-modal__submit {
    min-height: 46px;
    margin-top: 0;
    font-size: 13px;
}

#td-guest-register-modal .td-guest-auth-modal__switch {
    margin-top: 0;
    font-size: 10px;
}

@media (max-height: 720px) and (min-width: 576px) {
    #td-guest-register-modal .td-modal__body {
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    #td-guest-register-modal .td-modal__header {
        padding: 17px 20px 14px;
    }

    #td-guest-register-modal .td-modal__body {
        padding: 14px 20px 18px;
        overflow-y: auto;
    }
}

/* The login form follows the same compact, one-screen rhythm as registration. */
#td-guest-login-modal .td-modal__panel {
    max-height: calc(100vh - 20px);
}

#td-guest-login-modal .td-modal__header {
    padding: 20px 26px 17px;
}

#td-guest-login-modal .td-modal__kicker {
    min-height: 21px;
    margin-bottom: 6px;
    padding-inline: 8px;
    font-size: 9px;
}

#td-guest-login-modal .td-modal__title {
    font-size: 25px;
}

#td-guest-login-modal .td-modal__subtitle {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

#td-guest-login-modal .td-modal__body {
    padding: 17px 26px 21px;
    overflow: visible;
}

#td-guest-login-modal .td-guest-auth-modal__form {
    gap: 13px;
}

#td-guest-login-modal .td-guest-auth-modal__section-heading {
    min-height: 25px;
    padding-bottom: 7px;
}

#td-guest-login-modal .td-guest-auth-modal__section-heading span {
    font-size: 11px;
}

#td-guest-login-modal .td-guest-auth-modal__section-heading small {
    font-size: 9px;
}

#td-guest-login-modal .td-guest-auth-modal__field {
    gap: 5px;
}

#td-guest-login-modal .td-guest-auth-modal__field > label {
    font-size: 11px;
}

#td-guest-login-modal .form-control {
    min-height: 43px;
    font-size: 13px;
}

#td-guest-login-modal .td-guest-auth-modal__password-toggle {
    width: 29px;
    height: 29px;
    right: 6px;
}

#td-guest-login-modal .td-guest-auth-modal__forgot {
    margin: -2px 0 0;
    font-size: 10px;
}

#td-guest-login-modal .td-guest-auth-modal__submit {
    min-height: 46px;
    margin-top: 0;
    font-size: 13px;
}

#td-guest-login-modal .td-guest-auth-modal__switch {
    margin-top: 0;
    font-size: 10px;
}

@media (max-width: 575.98px) {
    #td-guest-login-modal .td-modal__header {
        padding: 17px 20px 14px;
    }

    #td-guest-login-modal .td-modal__body {
        padding: 14px 20px 18px;
    }

    #td-guest-login-modal .td-guest-auth-modal__section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    #td-guest-login-modal .td-guest-auth-modal__section-heading small {
        text-align: left;
    }
}

/* Restore a comfortable reading scale while keeping the one-screen layout. */
#td-guest-register-modal .td-modal__kicker,
#td-guest-login-modal .td-modal__kicker {
    font-size: 10px;
}

#td-guest-register-modal .td-modal__title,
#td-guest-login-modal .td-modal__title {
    font-size: 29px;
}

#td-guest-register-modal .td-modal__subtitle,
#td-guest-login-modal .td-modal__subtitle {
    font-size: 14px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading span,
#td-guest-login-modal .td-guest-auth-modal__section-heading span {
    font-size: 13px;
}

#td-guest-register-modal .td-guest-auth-modal__section-heading small,
#td-guest-login-modal .td-guest-auth-modal__section-heading small {
    font-size: 11px;
}

#td-guest-register-modal .td-guest-auth-modal__field > label,
#td-guest-login-modal .td-guest-auth-modal__field > label {
    font-size: 13px;
}

#td-guest-register-modal .td-guest-auth-modal__field > label span {
    font-size: 10px;
}

#td-guest-register-modal .form-control,
#td-guest-register-modal .form-select,
#td-guest-login-modal .form-control {
    min-height: 46px;
    font-size: 16px;
}

#td-guest-register-modal .td-guest-auth-modal__password-strength,
#td-guest-register-modal .td-guest-auth-modal__password-status {
    font-size: 11px;
}

#td-guest-register-modal .td-guest-auth-modal__password-generate {
    min-height: 36px;
    font-size: 12px;
}

#td-guest-register-modal .td-guest-auth-modal__terms,
#td-guest-login-modal .td-guest-auth-modal__forgot {
    font-size: 12px;
}

#td-guest-register-modal .td-guest-auth-modal__submit,
#td-guest-login-modal .td-guest-auth-modal__submit {
    min-height: 48px;
    font-size: 15px;
}

#td-guest-register-modal .td-guest-auth-modal__switch,
#td-guest-login-modal .td-guest-auth-modal__switch {
    font-size: 12px;
}

@media (max-width: 575.98px) {
    #td-guest-register-modal .td-modal__title,
    #td-guest-login-modal .td-modal__title {
        font-size: 25px;
    }

    #td-guest-register-modal .td-modal__subtitle,
    #td-guest-login-modal .td-modal__subtitle {
        font-size: 13px;
    }
}
