.pda-auth-page,
.pda-auth-page * {
    box-sizing: border-box;
}

.pda-auth-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: 74px 24px 54px;
    place-items: center;
    color: var(--pda-text);
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 218, 240, .34), transparent 25%),
        radial-gradient(circle at 12% 92%, rgba(255, 179, 162, .24), transparent 27%),
        linear-gradient(180deg, #fff0ec 0%, #fff7f4 100%);
}

.pda-auth-back {
    position: absolute;
    top: 24px;
    left: max(24px, calc((100vw - 1120px) / 2));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d635e;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.pda-auth-back:hover {
    color: var(--pda-green);
}

.pda-auth-shell {
    width: min(100%, 500px);
    margin-inline: auto;
}

.pda-auth-form {
    width: 100%;
    padding: 18px 0 8px;
}

.pda-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.pda-auth-logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 210px;
}

.pda-auth-form__head {
    text-align: center;
}

.pda-auth-eyebrow {
    margin: 0 0 9px;
    color: #946f12;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.pda-auth-form__head h1 {
    margin: 0;
    color: var(--pda-text);
    font-family: var(--pda-font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.018em;
}

.pda-auth-form__head > p:last-child {
    max-width: 430px;
    margin: 12px auto 0;
    color: var(--pda-muted);
    font-size: .98rem;
    line-height: 1.62;
}

.pda-auth-google {
    display: flex;
    width: 100%;
    min-height: 50px;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #ded4ce;
    border-radius: 12px;
    color: #433d39;
    background: #fff;
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.pda-auth-google:hover {
    border-color: rgba(191, 155, 48, .5);
    background: #fffdfa;
}

.pda-auth-google svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.pda-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #998e88;
    font-size: .76rem;
    text-transform: uppercase;
}

.pda-auth-divider::before,
.pda-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #decfc8;
}

.pda-auth-form__fields {
    display: grid;
    width: 100%;
    gap: 18px;
}

.pda-auth-field {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 7px;
}

.pda-auth-field label {
    color: #49423e;
    font-size: .88rem;
    font-weight: 600;
}

.pda-auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.pda-auth-field__label-row a {
    color: #946f12;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

.pda-auth-field input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #ded4ce;
    border-radius: 11px;
    color: var(--pda-text);
    background: rgba(255, 255, 255, .92);
    font: 400 .96rem var(--pda-font-body);
}

.pda-auth-field input:focus {
    outline: 3px solid rgba(255, 179, 162, .28);
    border-color: var(--pda-coral-deep);
    background: #fff;
}

.pda-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--pda-green);
    font: 700 .96rem var(--pda-font-body);
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.pda-auth-submit:hover {
    background: var(--pda-green-dark);
    transform: translateY(-1px);
}

.pda-auth-switch {
    margin: 24px 0 0;
    color: var(--pda-muted);
    font-size: .88rem;
    text-align: center;
}

.pda-auth-switch a,
.pda-auth-privacy a {
    color: #946f12;
    font-weight: 700;
    text-decoration: none;
}

.pda-auth-switch a:hover,
.pda-auth-privacy a:hover,
.pda-auth-field__label-row a:hover {
    text-decoration: underline;
}

.pda-auth-privacy {
    max-width: 410px;
    margin: 14px auto 0;
    color: #91857e;
    font-size: .76rem;
    line-height: 1.55;
    text-align: center;
}

.pda-auth-alert {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .88rem;
    line-height: 1.5;
    text-align: center;
}

.pda-auth-alert--error {
    border: 1px solid #efcccc;
    color: #7c3333;
    background: #fff3f3;
}

.pda-auth-alert--success {
    border: 1px solid #c9dfd2;
    color: #285a44;
    background: #f1faf5;
}

.pda-auth-alert a {
    color: inherit;
    font-weight: 700;
}

.pda-auth-recovery-note {
    margin: 12px 0 0;
    color: var(--pda-muted);
    font-size: .85rem;
    line-height: 1.55;
    text-align: center;
}

.pda-auth-recovery-form {
    margin-top: 28px;
}

.pda-auth-submit--link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    text-decoration: none;
}

@media (max-width: 560px) {
    .pda-auth-page {
        min-height: 100svh;
        padding: 68px 20px 38px;
    }

    .pda-auth-back {
        top: 20px;
        left: 20px;
        font-size: .82rem;
    }

    .pda-auth-logo {
        margin-bottom: 26px;
    }

    .pda-auth-logo img {
        height: 43px;
        max-width: 190px;
    }

    .pda-auth-form__head h1 {
        font-size: clamp(1.9rem, 10vw, 2.4rem);
    }

    .pda-auth-google {
        margin-top: 26px;
    }
}

@media (max-width: 380px) {
    .pda-auth-page {
        padding-inline: 14px;
    }

    .pda-auth-field__label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
