/* Invitation gate — refined, minimal */

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

.auth-page {
    min-height: 100vh;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #0f1419;
    position: relative;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.auth-bg-glow--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(180, 155, 110, 0.35) 0%, transparent 70%);
}

.auth-bg-glow--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(70, 100, 140, 0.4) 0%, transparent 70%);
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 100%);
}

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

.auth-card {
    padding: 2.75rem 2.25rem 2.25rem;
    border-radius: 1.25rem;
    background: rgba(22, 28, 36, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
}

.auth-mark {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    color: #c9a86c;
    opacity: 0.9;
}

.auth-mark svg {
    width: 100%;
    height: 100%;
}

.auth-eyebrow {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(201, 168, 108, 0.85);
    margin-bottom: 0.5rem;
}

.auth-title {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: #f4f5f7;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(232, 234, 237, 0.62);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(232, 234, 237, 0.55);
    letter-spacing: 0.04em;
}

.auth-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: #f4f5f7;
    font-size: 0.9375rem;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    letter-spacing: 0.08em;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input::placeholder {
    color: rgba(232, 234, 237, 0.28);
    letter-spacing: 0.04em;
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(201, 168, 108, 0.55);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.12);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #c9a86c 0%, #a8864e 100%);
    color: #1a1510;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 168, 108, 0.28);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-btn-arrow {
    width: 1.1rem;
    height: 1.1rem;
}

.auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(232, 234, 237, 0.55);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.auth-hint-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    opacity: 0.7;
}

.auth-hint.error {
    background: rgba(220, 80, 80, 0.1);
    border-color: rgba(220, 80, 80, 0.25);
    color: #f0a0a0;
}

.auth-hint.error .auth-hint-icon {
    color: #f0a0a0;
}

.auth-footer-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(232, 234, 237, 0.28);
    letter-spacing: 0.06em;
}

.spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(26, 21, 16, 0.2);
    border-top-color: #1a1510;
    border-radius: 50%;
    animation: auth-spin 0.65s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem 1.75rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}
