body {
    min-height: 100vh;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 5px),
        radial-gradient(circle at 50% 15%, #9b2525 0, #621010 42%, #2b2929 100%);
}

.auth-shell {
    box-sizing: border-box;
    width: min(860px, calc(100% - 24px));
    margin: 24px auto 44px;
    font-family: Verdana, Arial, sans-serif;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
}

.auth-tab {
    min-width: 72px;
    padding: 7px 14px;
    border: 1px solid #330000;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(#eee9e5, #d1c8c2);
    color: #330505;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.auth-tab:hover,
.auth-tab.active {
    background: #fff;
    color: #920b0b;
}

.auth-tab.active {
    position: relative;
    z-index: 2;
    padding-top: 9px;
}

.auth-frame {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(330px, 1.05fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #340000;
    border-top: 4px solid #8d0000;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .52);
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 35px 28px;
    background:
        linear-gradient(rgba(74, 4, 4, .92), rgba(119, 10, 10, .92)),
        repeating-linear-gradient(135deg, #6f0909 0 14px, #790d0d 14px 28px);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px #330000;
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.auth-brand::before {
    width: 260px;
    height: 260px;
    top: -145px;
    left: -110px;
}

.auth-brand::after {
    width: 190px;
    height: 190px;
    right: -100px;
    bottom: -105px;
}

.auth-eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: normal;
    letter-spacing: .5px;
    line-height: 1.04;
}

.auth-brand > p:not(.auth-eyebrow) {
    margin: 15px 0 8px;
    color: #f3dddd;
    font-size: 11px;
    line-height: 1.55;
}

.auth-pokemon {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 116px;
    margin-top: 8px;
}

.auth-pokemon img {
    width: 88px;
    height: 88px;
    margin: 0 -9px;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .45));
}

.auth-pokemon img.auth-pokemon-featured {
    z-index: 2;
    width: 116px;
    height: 116px;
}

.auth-panel {
    padding: 42px 42px 34px;
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(113, 50, 32, .04) 31px 32px),
        #fff;
}

.auth-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #8d0000;
}

.auth-ball {
    position: relative;
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border: 3px solid #333;
    border-radius: 50%;
    background: linear-gradient(#aa0c0c 0 44%, #333 44% 56%, #eee 56%);
}

.auth-ball::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #333;
    border-radius: 50%;
    background: #fff;
}

.auth-title {
    margin: 0 0 3px;
    color: #760909;
    font-size: 20px;
}

.auth-subtitle {
    margin: 0;
    color: #6c625e;
    font-size: 11px;
}

.auth-field {
    margin-bottom: 15px;
}

.auth-field label {
    display: block;
    margin-bottom: 5px;
    color: #4e0909;
    font-size: 11px;
    font-weight: bold;
}

.auth-field input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #a69b94;
    border-radius: 2px;
    background: rgba(255, 255, 255, .92);
    color: #222;
    font: 13px Verdana, Arial, sans-serif;
}

.auth-field input:focus {
    outline: 2px solid rgba(176, 0, 0, .16);
    border-color: #8d0000;
}

.auth-submit {
    width: 100%;
    margin-top: 3px;
    padding: 11px;
    border: 1px solid #4e0000;
    border-radius: 3px;
    background: linear-gradient(#bd1818, #7c0707);
    color: #fff;
    cursor: pointer;
    font: bold 12px Verdana, Arial, sans-serif;
    letter-spacing: .2px;
    text-shadow: 0 1px #350000;
}

.auth-submit:hover {
    background: linear-gradient(#ce2020, #900a0a);
}

.auth-error {
    margin: -8px 0 16px;
    padding: 9px 11px;
    border: 1px solid #d89a9a;
    border-left: 4px solid #a10000;
    background: #fff0f0;
    color: #870000;
    font-size: 11px;
}

.auth-footer {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid #d9d0ca;
    color: #6c625e;
    font-size: 11px;
}

.auth-footer a {
    color: #920b0b;
    font-weight: bold;
}

@media (max-width: 700px) {
    .auth-frame {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: 230px;
        padding-block: 25px 14px;
    }

    .auth-brand > p:not(.auth-eyebrow) {
        display: none;
    }

    .auth-pokemon {
        min-height: 96px;
        margin-top: 3px;
    }

    .auth-pokemon img {
        width: 72px;
        height: 72px;
    }

    .auth-pokemon img.auth-pokemon-featured {
        width: 96px;
        height: 96px;
    }

    .auth-panel {
        padding: 30px 24px;
    }
}

@media (max-width: 430px) {
    .auth-tab {
        min-width: 0;
        flex: 1;
        padding-inline: 8px;
    }

    .auth-footer {
        flex-direction: column;
        align-items: center;
    }
}
