/*
 * chatgptsmart — shared landing pages (auth / payment / footer).
 * Ports the common .auth / .check / .payment / footer styles onto the
 * chatgptsmart bundle so /reg, /signup and land.footer render with the
 * same markup as the other landings. Default var names are aliased to
 * chatgptsmart design tokens, so buttons/colors stay on-brand.
 */
:root {
    --danger-color: var(--color-danger);
    --danger-bg-color: var(--color-danger-bg);
    --gray-300: var(--color-input-border);
    --line-dark-color: var(--color-input-border);
    --main-color: var(--color-main);
    --success-color: var(--color-success);
    --text-color: var(--color-text-base);
    --title-color: var(--color-dark);
}

/* ============ login / payment background ============ */
.login-bg {
    background: var(--color-gray) !important;
}

/* On inner pages (reg/login/signup) the header sits in flow, not fixed. */
.login-bg .header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}
.header__btn--login {
    white-space: nowrap;
}

/* ============ auth (signup / payment) ============ */
.auth {
    width: 100%;
    max-width: 480px;
    min-height: 80vh;
    min-height: 80dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-family: var(--font-base);
    padding: 24px 16px;
}
.auth__form {
    width: 100%;
    display: none;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 0 36px -21px rgba(34, 60, 80, 0.3);
    padding: 32px 48px;
}
.auth__form.active {
    display: flex;
}
.auth__form-head {
    margin-bottom: 32px;
}
.auth__title {
    font-family: var(--font-accent, var(--font-base));
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--title-color);
    text-align: center;
    margin-bottom: 8px;
}
.auth__description {
    color: var(--color-text-base);
    font-size: 16px;
    text-align: center;
}
.auth__field {
    position: relative;
    margin-bottom: 16px;
}
.auth__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 56px;
    color: var(--color-text-base);
    background-color: var(--color-white);
    border: 1px solid var(--color-input-border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}
.auth__input:hover,
.auth__input:focus {
    outline: none;
    border-color: var(--color-main);
}
.auth__input.input-error {
    border: 1px solid var(--color-danger);
}
.auth__input.input-error::placeholder {
    color: var(--color-danger);
}
.auth__btn {
    width: 100%;
}
.auth__switch {
    display: inline-block;
    width: 100%;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 16px;
    font-size: 0.9rem;
}
.auth__switch span,
.auth__switch-link {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.auth__switch span:hover,
.auth__switch-link:hover {
    color: var(--color-main);
}

/* password show/hide toggle */
.auth__input.has-toggle {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
    color: var(--color-input-placeholder);
}
.password-toggle:hover {
    color: var(--color-text-dark);
}

/* ============ agreement checkboxes ============ */
.form__footer {
    margin-top: 16px;
}
.check {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}
.check:not(:last-child) {
    margin-bottom: 16px;
}
.check__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
}
.check__box {
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-input-border);
    border-radius: 3px;
    cursor: pointer;
}
.check__box:hover {
    border-color: var(--color-main);
}
.check__input:checked + .check__box {
    background: var(--color-success)
        url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 12L2.56 8.37a.5.5 0 0 1 0-.79l.8-.79a.5.5 0 0 1 .79 0L6.6 9.04l5.45-5.45a.5.5 0 0 1 .79 0l.8.79a.5.5 0 0 1 0 .79L7 12a.56.56 0 0 1-.8 0Z' fill='white'/%3E%3C/svg%3E")
        center no-repeat;
    border-color: var(--color-success);
}
.check.is-error .check__box {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
}
.check__label {
    color: var(--color-text-base);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}
.check__link {
    cursor: pointer;
    text-decoration: underline;
}
.check__link:hover {
    text-decoration: none;
    color: var(--color-main);
}
.text-danger {
    color: var(--color-danger);
    font-size: 12px;
}

/* ============ pricing / countdown timer ============ */
.form-payment__pricing {
    margin-bottom: 20px;
}

/* ============ payment security / logos ============ */
.payment__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: var(--color-success-bg);
    border-radius: 10px;
    margin-top: 24px;
    font-size: 14px;
    text-align: left;
}
.payment__icon {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
}
.payment__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}
.payment__logos img {
    flex-shrink: 0;
    max-width: 100%;
    height: auto;
}

/* ============ land.footer layout (shared markup) ============ */
.footer__top {
    display: block;
}
.footer__top-container {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}
.footer__bottom {
    display: block;
}
.footer__bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer__payments {
    width: auto;
}
.footer__payments img {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 991px) {
    .footer__top-container {
        flex-wrap: wrap;
        gap: 24px;
    }
    .footer__top-container > * {
        flex: 1 1 40%;
    }
}

@media (max-width: 767px) {
    .auth__form {
        padding: 32px;
        border-radius: 16px;
    }
    .auth__title {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .auth__form {
        padding: 24px;
    }
    .auth__title {
        font-size: 24px;
    }
    .auth__description {
        font-size: 15px;
    }
    .footer__top-container {
        flex-direction: column;
        gap: 24px;
    }
    .footer__bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
