.gold-auth-page {
    min-height: 100vh;
    margin: 0;
    color: #f8f1dc;
    background-color: #050706;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.gold-auth-page a {
    color: #ffd777;
    text-decoration: none;
}

.gold-auth-page button,
.gold-auth-page input {
    font: inherit;
}

.gold-auth-page button {
    cursor: pointer;
}

.gold-login-page {
    background-image: url("/static/gold/1.jpg");
}

.gold-register-page {
    background-image: url("/static/gold/2.jpg");
}

.gold-login-page,
.gold-register-page {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.gold-auth {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
    overflow: hidden;
}

.gold-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 5, 4, .08), rgba(4, 5, 4, .16) 44%, rgba(4, 5, 4, .28)),
        radial-gradient(circle at 50% 2%, rgba(255, 211, 115, .18), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(207, 137, 34, .18), transparent 38%);
}

.gold-auth__hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 48px;
    text-align: center;
}

.gold-auth__hero--compact {
    padding-top: 28px;
}

.gold-auth__mark {
    position: relative;
    width: 62px;
    height: 36px;
    margin-bottom: 6px;
}

.gold-auth__mark span {
    position: absolute;
    bottom: 0;
    width: 32px;
    height: 32px;
    border-left: 7px solid #f8cd63;
    border-top: 7px solid #f8cd63;
    filter: drop-shadow(0 4px 14px rgba(255, 200, 86, .45));
    transform: rotate(45deg) skew(-10deg, -10deg);
}

.gold-auth__mark span:nth-child(1) {
    left: 4px;
    transform: rotate(45deg) skew(-10deg, -10deg) scale(.8);
}

.gold-auth__mark span:nth-child(2) {
    left: 16px;
}

.gold-auth__mark span:nth-child(3) {
    right: 4px;
    transform: rotate(45deg) skew(-10deg, -10deg) scale(.8);
}

.gold-auth__hero h1 {
    margin: 0;
    color: #ffe79c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 2px 0 #6f4917, 0 10px 24px rgba(0, 0, 0, .75);
    text-transform: uppercase;
}

.gold-auth__hero p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.gold-auth__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-top: 16px;
    color: #fff4d0;
}

.gold-auth__features--bottom {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(4, 1fr);
    margin: 14px 0 0;
}

.gold-auth__features div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.gold-auth__features div:last-child {
    border-right: 0;
}

.gold-auth__features span {
    max-width: 88px;
    color: rgba(255, 255, 255, .86);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.gold-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    color: #ffd36b;
}

.gold-icon::before,
.gold-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.gold-icon-bars::before {
    left: 4px;
    bottom: 5px;
    width: 20px;
    height: 13px;
    border-radius: 2px 2px 0 0;
    box-shadow: inset -7px 0 0 rgba(0, 0, 0, .35), inset 7px 0 0 rgba(0, 0, 0, .24);
}

.gold-icon-growth::before {
    left: 4px;
    bottom: 5px;
    width: 5px;
    height: 11px;
    box-shadow: 8px -5px 0 currentColor, 16px -11px 0 currentColor;
}

.gold-icon-shield::before {
    left: 6px;
    top: 3px;
    width: 16px;
    height: 20px;
    clip-path: polygon(50% 0, 95% 16%, 86% 72%, 50% 100%, 14% 72%, 5% 16%);
}

.gold-icon-community::before {
    left: 7px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: -9px 6px 0 -3px currentColor, 9px 6px 0 -3px currentColor, 0 13px 0 3px currentColor;
}

.gold-icon-pick::before {
    left: 12px;
    top: 4px;
    width: 4px;
    height: 22px;
    border-radius: 3px;
    transform: rotate(40deg);
}

.gold-icon-pick::after {
    left: 7px;
    top: 3px;
    width: 17px;
    height: 4px;
    border-radius: 5px;
    transform: rotate(-25deg);
}

.gold-auth__panel {
    position: relative;
    z-index: 1;
    margin-top: 96px;
}

.gold-register-page .gold-auth__panel {
    margin-top: 78px;
}

.gold-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gold-field {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(216, 229, 226, .34);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(19, 28, 29, .9), rgba(9, 14, 14, .78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 24px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.gold-field:focus-within {
    border-color: rgba(255, 214, 116, .76);
    box-shadow: 0 0 0 3px rgba(255, 211, 107, .12), 0 12px 24px rgba(0, 0, 0, .24);
}

.gold-field__icon,
.gold-field__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, .86);
}

.gold-field__icon svg,
.gold-field__action svg,
.gold-back-link svg {
    width: 18px;
    height: 18px;
}

.gold-field svg,
.gold-back-link svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.gold-field input {
    min-width: 0;
    flex: 1;
    height: 42px;
    border: 0;
    outline: 0;
    color: #fff7e4;
    background: transparent;
    font-size: 15px;
}

.gold-field input::placeholder {
    color: rgba(255, 255, 255, .64);
}

.gold-field__action {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .58);
}

.gold-field__action.is-visible {
    color: #ffd36b;
}

.gold-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 26px;
}

.gold-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
}

.gold-check--terms {
    align-items: flex-start;
    line-height: 1.4;
}

.gold-check input {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    appearance: none;
    border: 1px solid rgba(255, 211, 107, .6);
    border-radius: 6px;
    background: rgba(255, 211, 107, .14);
}

.gold-check input:checked {
    border-color: #ffdf82;
    background: linear-gradient(180deg, #ffe596, #e5ad49);
}

.gold-check input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #141006;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gold-button {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    color: #151006;
    background: linear-gradient(180deg, #ffe698 0%, #f4c466 50%, #d99832 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 14px 28px rgba(0, 0, 0, .3);
    font-size: 18px;
    font-weight: 800;
}

.gold-button:active {
    transform: translateY(1px);
}

.gold-auth__switch {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    text-align: center;
}

.gold-auth__switch a {
    margin-left: 4px;
    font-weight: 800;
}

.gold-auth__footer {
    position: relative;
    z-index: 1;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
    letter-spacing: 7px;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
}

.gold-register-page .gold-auth__footer {
    margin-top: 14px;
}

.gold-back-link {
    position: absolute;
    z-index: 3;
    top: max(26px, env(safe-area-inset-top));
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
}

@media (max-width: 360px) {
    .gold-auth {
        padding-right: 16px;
        padding-left: 16px;
    }

    .gold-auth__hero {
        padding-top: 36px;
    }

    .gold-auth__hero--compact {
        padding-top: 24px;
    }

    .gold-auth__hero h1 {
        font-size: 18px;
    }

    .gold-auth__hero p {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .gold-auth__panel,
    .gold-register-page .gold-auth__panel {
        margin-top: 66px;
    }

    .gold-field {
        min-height: 42px;
    }

    .gold-field input {
        height: 40px;
        font-size: 15px;
    }

    .gold-button {
        min-height: 42px;
        font-size: 18px;
    }
}
