*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --pro-yellow: #f4c430;
    --pro-yellow-strong: #e9b912;
    --pro-ink: #111318;
    --pro-muted: #6b7280;
    --pro-border: #e5e7eb;
    --pro-surface: #ffffff;
    --pro-error: #b42318;
    --pro-success: #067647;
}

html {
    min-height: 100%;
    background: #f7f7f5;
}

body.pro-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--pro-ink);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(244, 196, 48, .15), transparent 28%),
        radial-gradient(circle at 84% 88%, rgba(17, 19, 24, .06), transparent 26%),
        linear-gradient(180deg, #fbfbfa 0%, #f3f3f0 100%);
}

a {
    color: inherit;
}

.pro-auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 72px 20px 48px;
}

.pro-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 19, 24, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 19, 24, .025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 85%);
}

.pro-auth-back {
    position: absolute;
    top: 28px;
    left: 32px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease;
}

.pro-auth-back:hover {
    color: var(--pro-ink);
}

.pro-auth-back svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pro-auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid rgba(17, 19, 24, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow:
        0 28px 70px rgba(17, 19, 24, .10),
        0 2px 8px rgba(17, 19, 24, .04);
}

.pro-auth-card-large {
    width: min(100%, 560px);
}

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

.pro-auth-logo img {
    display: block;
    width: 132px;
    height: auto;
}

.pro-auth-badge {
    width: max-content;
    margin: 0 auto 14px;
    padding: 7px 10px;
    border: 1px solid rgba(233, 185, 18, .28);
    border-radius: 5px;
    color: #7a5a00;
    background: #fff8db;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.pro-auth-heading {
    margin-bottom: 27px;
    text-align: center;
}

.pro-auth-heading h1 {
    margin: 0;
    font-size: clamp(29px, 4vw, 36px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.pro-auth-heading p {
    max-width: 440px;
    margin: 10px auto 0;
    color: var(--pro-muted);
    font-size: 14px;
    line-height: 1.65;
}

.pro-auth-alert {
    margin-bottom: 18px;
    padding: 12px 13px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 620;
    line-height: 1.5;
}

.pro-auth-alert.is-error {
    color: var(--pro-error);
    border-color: #f3c7c3;
    background: #fff5f4;
}

.pro-auth-alert.is-success {
    color: var(--pro-success);
    border-color: #a6e3cb;
    background: #ecfdf3;
}

.pro-auth-form {
    display: grid;
    gap: 17px;
}

.pro-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pro-field {
    display: grid;
    gap: 8px;
}

.pro-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pro-field label {
    color: #292d35;
    font-size: 13px;
    font-weight: 720;
}

.pro-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d6d9df;
    border-radius: 7px;
    outline: none;
    color: var(--pro-ink);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.pro-field input::placeholder {
    color: #a0a6b0;
}

.pro-field input:hover {
    border-color: #b9bec7;
}

.pro-field input:focus {
    border-color: #d8a900;
    box-shadow: 0 0 0 3px rgba(244, 196, 48, .18);
    background: #fffef9;
}

.pro-auth-submit {
    min-height: 47px;
    margin-top: 3px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d9aa00;
    border-radius: 7px;
    color: #171717;
    background: linear-gradient(180deg, #f8cf43 0%, #efbf22 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        0 8px 22px rgba(233, 185, 18, .19);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.pro-auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(.99);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        0 12px 26px rgba(233, 185, 18, .24);
}

.pro-auth-submit svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pro-auth-separator {
    margin: 24px 0 17px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.pro-auth-separator span {
    height: 1px;
    background: var(--pro-border);
}

.pro-auth-separator small {
    color: #9ca3af;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.pro-auth-secondary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dbe1;
    border-radius: 7px;
    color: #24272e;
    background: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background .18s ease;
}

.pro-auth-secondary:hover {
    border-color: #bfc4cc;
    background: #fafafa;
}

.pro-auth-help,
.pro-auth-legal,
.pro-auth-security {
    color: var(--pro-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.pro-auth-help {
    margin: 19px 0 0;
}

.pro-auth-help a {
    color: #5f4900;
    font-weight: 750;
    text-decoration: none;
}

.pro-auth-help a:hover {
    text-decoration: underline;
}

.pro-auth-legal {
    margin: 18px 0 0;
}

.pro-auth-security {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
}

@media (max-width: 640px) {
    .pro-auth-page {
        place-items: start center;
        padding: 76px 14px 40px;
    }

    .pro-auth-back {
        top: 24px;
        left: 18px;
    }

    .pro-auth-card,
    .pro-auth-card-large {
        width: 100%;
        padding: 27px 20px;
        border-radius: 9px;
    }

    .pro-form-grid {
        grid-template-columns: 1fr;
    }

    .pro-auth-security {
        position: static;
        margin-top: 24px;
    }
}
