.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.auth-modal-overlay.active { display: flex; }

.auth-modal {
    background: #FFF;
    width: 100%; max-width: 440px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.08);
    position: relative;
    padding: 48px;
}

.auth-modal-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; font-family: 'JetBrains Mono', monospace; font-weight: 900;
    padding: 10px 14px; line-height: 1; color: #999;
}
.auth-modal-close:hover { color: #000; }

.auth-modal-header { margin-bottom: 40px; text-align: left; }
.auth-modal-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 12px; word-break: break-word; }
.auth-modal-subtitle { color: #666; font-size: 0.95rem; font-weight: 600; }

.auth-form-group { margin-bottom: 24px; }
.auth-label {
    display: block; font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 900; text-transform: uppercase;
    margin-bottom: 8px; color: #111;
}
.auth-input {
    width: 100%; padding: 16px;
    border: 1.5px solid #E5E7EB; border-radius: 12px;
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
    outline: none; transition: border-color 0.2s;
}
.auth-input:focus { border-color: #00FFA3; }

.auth-code-container { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 32px 0; }
.auth-code-input {
    width: 100%; height: 56px; text-align: center;
    border: 1.5px solid #E5E7EB; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem; font-weight: 900;
    outline: none;
    transition: border-color 0.15s;
}
.auth-code-input:focus { border-color: #00FFA3; }

.auth-btn-submit {
    width: 100%; padding: 18px;
    background: #000; color: #FFF; border: none;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace; font-weight: 900;
    font-size: 1rem; text-transform: uppercase; cursor: pointer;
    transition: 0.2s;
}
.auth-btn-submit:hover { background: #00FFA3; color: #000; }

.auth-link-btn {
    background: none; border: none; color: #111;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    font-weight: 800; text-decoration: underline; cursor: pointer;
    margin-top: 24px; display: inline-block;
}

.auth-error-msg {
    background: #FFEDED; color: #FF3333; padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 24px;
    border: 1px solid #FF3333; display: none;
}
.auth-error-msg.active { display: block; }
