:root {
    --gold: #d7a73f;
    --gold-light: #f2c15f;
    --gold-dark: #8e6821;
    --black: #050505;
    --white: #f7f2e8;
    --muted: #b9b1a4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    align-items: center;
    background:
        radial-gradient(circle at 50% 15%, rgba(215, 167, 63, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(225deg, rgba(255, 255, 255, 0.028) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(180deg, #171717 0%, #050505 100%);
    color: var(--white);
    display: grid;
    font-family: "Montserrat", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px 18px;
    place-items: center;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 620px;
    position: relative;
    width: min(100%, 420px);
}

.login-shell::before,
.login-shell::after {
    border-radius: 999px;
    content: "";
    filter: blur(6px);
    pointer-events: none;
    position: absolute;
}

.login-shell::before {
    border: 1px solid rgba(215, 167, 63, 0.22);
    height: 230px;
    right: -78px;
    top: 32px;
    width: 230px;
}

.login-shell::after {
    background: rgba(215, 167, 63, 0.08);
    bottom: 48px;
    height: 170px;
    left: -70px;
    width: 170px;
}

.login-card {
    animation: cardIn 700ms ease both;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
        rgba(5, 5, 5, 0.78);
    border: 1px solid rgba(215, 167, 63, 0.32);
    border-radius: 32px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 40px 28px 34px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.brand {
    margin-bottom: 24px;
    text-align: center;
}

.brand-mark {
    align-items: center;
    background: radial-gradient(circle, rgba(215, 167, 63, 0.18), rgba(0, 0, 0, 0.72));
    border: 3px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(215, 167, 63, 0.26);
    display: grid;
    height: 108px;
    margin: 0 auto 16px;
    place-items: center;
    width: 108px;
}

.brand-mark img {
    height: 82%;
    object-fit: contain;
    width: 82%;
}

.member-title {
    color: var(--gold-light);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

.member-subtitle {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    margin-top: 10px;
    text-transform: uppercase;
}

.messages {
    background: rgba(150, 24, 24, 0.32);
    border: 1px solid rgba(255, 144, 144, 0.25);
    border-radius: 16px;
    color: #ffe5e5;
    font-size: 0.78rem;
    margin: 0 0 18px;
    padding: 12px 14px;
    text-align: center;
}

.info-message {
    background: rgba(215, 167, 63, 0.16);
    border-color: rgba(215, 167, 63, 0.32);
    color: var(--white);
}

.errorlist {
    color: #ffe5e5;
    font-size: 0.72rem;
    list-style: none;
    margin: -8px 12px 0;
}

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

.register-shell {
    min-height: 760px;
}

.register-form {
    gap: 13px;
}

.input-wrap {
    align-items: center;
    background: rgba(190, 197, 207, 0.94);
    border: 3px solid var(--white);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 48px 1fr;
    min-height: 48px;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.input-wrap.password-wrap {
    grid-template-columns: 48px 1fr 48px;
}

.input-wrap:focus-within {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(215, 167, 63, 0.16), 0 16px 34px rgba(0, 0, 0, 0.42);
    transform: translateY(-1px);
}

.input-icon {
    align-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: #343029;
    display: grid;
    height: 38px;
    margin-left: 4px;
    place-items: center;
    width: 38px;
}

.input-icon svg {
    height: 19px;
    width: 19px;
}

.input-wrap input {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0 999px 999px 0;
    color: #343029;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    height: 100%;
    letter-spacing: 0.04em;
    outline: 0;
    padding: 0 18px 0 10px;
    width: 100%;
}

.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #343029;
    box-shadow: 0 0 0 1000px rgba(190, 197, 207, 0.94) inset;
    caret-color: #343029;
    transition: background-color 9999s ease-in-out 0s;
}

.input-wrap input::placeholder {
    color: rgba(52, 48, 41, 0.72);
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #343029;
    cursor: pointer;
    display: grid;
    height: 38px;
    place-items: center;
    transition: color 180ms ease, transform 180ms ease;
    width: 38px;
}

.password-toggle:hover {
    color: var(--gold-dark);
    transform: scale(1.06);
}

.password-toggle svg {
    height: 20px;
    width: 20px;
}

.form-row {
    align-items: center;
    color: var(--white);
    display: flex;
    font-size: 0.72rem;
    gap: 14px;
    justify-content: space-between;
    padding: 2px 8px 14px;
}

.remember {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
}

.remember input {
    accent-color: var(--gold);
    height: 13px;
    width: 13px;
}

.login-button {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(215, 167, 63, 0.25);
    color: #15100a;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    margin: 12px auto 0;
    min-height: 48px;
    transition: transform 180ms ease, box-shadow 180ms ease;
    width: 72%;
}

.login-button:hover {
    box-shadow: 0 20px 36px rgba(215, 167, 63, 0.34);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 460px) {
    body {
        padding: 18px 12px;
    }

    .login-shell {
        min-height: auto;
    }

    .login-card {
        border-radius: 26px;
        padding: 32px 20px 28px;
    }

    .brand-mark {
        height: 94px;
        width: 94px;
    }

    .login-button {
        width: 100%;
    }
}
