body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    background: var(--grad-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(600px 300px at 85% 15%, rgba(255, 145, 65, 0.14), transparent 60%),
        radial-gradient(500px 300px at 10% 85%, rgba(7, 194, 142, 0.10), transparent 60%);
}

.auth-page {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(14, 32, 54, 0.10);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 18px;
}

.auth-logo .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-paint));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(241, 9, 131, 0.25);
}

.auth-logo .account-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-muted);
    padding: 3px 9px;
    border-radius: 999px;
    background: #F7F3FF;
}

.return-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(118deg, #F7F3FF, #FCE8F4);
    border: 1px solid rgba(155, 94, 255, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.35;
}

.return-hint .icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #9B5EFF, var(--c-accent));
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.return-hint strong {
    color: #1a0a2e;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.return-hint span {
    color: #5b2ec9;
    font-weight: 500;
}

.auth-title {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: -0.01em;
    text-align: center;
    margin: 0 0 6px;
}

.auth-sub {
    text-align: center;
    font-size: 13px;
    color: var(--c-muted);
    margin: 0 0 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    padding-left: 2px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--c-text);
    transition: border-color .2s, box-shadow .2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(241, 9, 131, 0.12);
}

.auth-form .errorlist {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
    color: #E53E3E;
    font-size: 12px;
}

.btn-submit {
    width: 100%;
    padding: 12px 18px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 4px;
    transition: all .2s;
    box-shadow: 0 8px 20px rgba(7, 194, 142, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--c-primary-600);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
    font-size: 13px;
    color: var(--c-muted);
}

.auth-switch a {
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch button {
    border: none;
    background: transparent;
    color: var(--c-accent);
    font-weight: 600;
    cursor: pointer;
    font: inherit;
}

.message.error {
    background: #FFEAEA;
    color: #9B1C1C;
    border: 1px solid rgba(155, 28, 28, 0.15);
}

/* warning */
.message.warning {
    background: #FFF7E6;
    color: #92400E;
    border: 1px solid rgba(146, 64, 14, 0.15);
}

/* info */
.message.info {
    background: #EEF2FF;
    color: #3730A3;
    border: 1px solid rgba(55, 48, 163, 0.15);
}