* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(rgba(2, 8, 12, 0.7), rgba(2, 8, 12, 0.82)), url('/img/minecraft-dark.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.auth-card {
    width: min(420px, 100%);
    background: rgba(20, 22, 29, 0.9);
    border: 1px solid rgba(106, 171, 186, 0.25);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.auth-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #1f232e;
}

.auth-card h1 {
    margin: 0;
    font-size: 32px;
}

.auth-subtitle {
    color: #a8c7ce;
    margin: 10px 0 20px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.auth-tab,
.auth-form button,
.auth-button-secondary,
.auth-button-danger {
    border: 0;
    border-radius: 8px;
    min-height: 44px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-tab {
    background: #1d1e24;
    color: #d8f7ff;
}

.auth-tab.active,
.auth-form button {
    background: #6aabba;
    color: #071217;
    font-weight: 700;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form input {
    width: 100%;
    padding: 13px;
    margin: 8px 0;
    border: 1px solid rgba(106, 171, 186, 0.2);
    border-radius: 8px;
    background: #10131a;
    color: #fff;
}

.auth-form button {
    width: 100%;
    margin-top: 10px;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 4px;
    min-height: 65px;
}

.auth-form button:hover,
.auth-tab.active:hover,
.auth-button-secondary:hover {
    background: #7dc7d8;
}

.auth-link {
    color: #8fc8d4;
    text-decoration: none;
    display: block;
    margin-top: 18px;
}

.auth-alert {
    padding: 11px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

.auth-alert-error {
    background: rgba(255, 91, 91, 0.16);
    color: #ffb0b0;
    border: 1px solid rgba(255, 91, 91, 0.28);
}

.auth-alert-success {
    background: rgba(89, 230, 168, 0.14);
    color: #9ff3c9;
    border: 1px solid rgba(89, 230, 168, 0.28);
}

.account-card {
    width: min(620px, 100%);
}

.account-grid {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    text-align: left;
}

.account-grid div {
    background: rgba(16, 19, 26, 0.8);
    border: 1px solid rgba(106, 171, 186, 0.18);
    border-radius: 8px;
    padding: 14px;
}

.account-grid span {
    color: #87aab3;
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.account-grid strong {
    color: #fff;
    word-break: break-word;
}

.account-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0 12px;
    overflow: visible;
}

.account-tab {
    position: relative;
    overflow: visible;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #1d1e24;
    color: #d8f7ff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-tab.active,
.account-tab:hover {
    background: #6aabba;
    color: #071217;
}

.account-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) scale(0.96);
    background: #070b10;
    border: 1px solid rgba(106, 171, 186, 0.28);
    border-radius: 7px;
    color: #d8f7ff;
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.14s ease;
    z-index: 10;
}

.account-tab:hover .account-tooltip,
.account-tab:focus .account-tooltip,
.account-tab:focus-within .account-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.account-panel {
    display: none;
}

.account-panel.active {
    display: block;
}

.account-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.auth-button-secondary {
    background: #1d1e24;
    color: #d8f7ff;
}

.auth-button-danger {
    background: #7a2f3c;
    color: #fff;
}

.auth-button-danger:hover {
    background: #a64050;
}

@media (max-width: 560px) {
    .account-actions {
        grid-template-columns: 1fr;
    }
}
