.auth-shell {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: linear-gradient(170deg, rgba(9, 16, 28, 0.94), rgba(6, 10, 18, 0.88));
    border: 1px solid rgba(120, 160, 255, 0.25);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-head h2 {
    margin: 0 0 6px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(235, 245, 255, 0.95);
}

.auth-head p {
    margin: 0;
    font-size: 13px;
    color: rgba(200, 220, 255, 0.75);
}

.auth-form {
    display: grid;
    gap: 14px;
    color: rgba(235, 245, 255, 0.9);
}

.auth-form label {
    color: rgba(200, 220, 255, 0.85);
}

.passkey-login {
    display: grid;
    gap: 8px;
}

.passkey-message {
    font-size: 12px;
    color: rgba(255, 180, 180, 0.9);
}

.auth-form .account-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(120, 160, 255, 0.35);
    background: linear-gradient(135deg, rgba(12, 18, 30, 0.95), rgba(8, 12, 20, 0.9));
    color: rgba(235, 245, 255, 0.95);
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}

.auth-code-input {
    text-align: center;
    font-family: "Michroma", sans-serif;
    letter-spacing: 0.22em;
}

.auth-code-wrap {
    position: relative;
}

.auth-code-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
    color: rgba(200, 220, 255, 0.6);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.auth-code-main {
    font-family: "Michroma", sans-serif;
}

.auth-code-or {
    font-family: "Tomorrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.auth-code-input:focus + .auth-code-placeholder,
.auth-code-input:not(:placeholder-shown) + .auth-code-placeholder {
    opacity: 0;
}

.auth-form .account-input:focus {
    outline: none;
    border-color: rgba(127, 176, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(127, 176, 255, 0.2);
}

.auth-form .account-button {
    justify-self: start;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(8, 12, 20, 0.9);
    border: 1px solid rgba(120, 160, 255, 0.45);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.auth-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ghost-button {
    background: rgba(16, 22, 34, 0.75);
    border: 1px solid rgba(120, 160, 255, 0.3);
    color: rgba(220, 230, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.auth-actions a,
.auth-actions a:hover {
    text-decoration: none;
}

.ghost-button:hover {
    background: rgba(20, 28, 44, 0.85);
    border-color: rgba(150, 190, 255, 0.6);
}

.auth-form .account-button:hover {
    background: rgba(16, 24, 40, 0.95);
    border-color: rgba(150, 190, 255, 0.75);
    transform: translateY(-1px);
}

.auth-messages {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: rgba(255, 210, 120, 0.95);
    font-size: 13px;
}

.auth-note {
    font-size: 13px;
    color: rgba(200, 220, 255, 0.85);
}

.auth-messages li {
    background: rgba(20, 26, 40, 0.7);
    border: 1px solid rgba(120, 160, 255, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
}

/* Modal cleanup for login overlay */
.login-panel-body .auth-shell {
    max-width: none;
    margin: 0;
}

.login-panel-body .auth-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.auth-link {
    color: rgba(190, 210, 245, 0.9);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-link:hover {
    color: #ffffff;
}
