.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-body);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo svg {
    color: var(--blue);
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    box-sizing: border-box;
    margin-bottom: 14px;
}

.auth-input:focus {
    border-color: var(--blue);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    margin-top: 6px;
}

.auth-btn:hover {
    background: var(--blue-dim);
    box-shadow: var(--shadow-glow-blue);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-toggle {
    text-align: center;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-toggle a {
    color: var(--blue);
    text-decoration: none;
    cursor: pointer;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.auth-note {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
}

/* Telegram connect steps */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-step-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-back {
    color: var(--text-muted);
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
    font-family: var(--font);
}

.auth-back:hover {
    color: var(--text-secondary);
}

.auth-user-info {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-user-info a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-user-info a:hover {
    color: var(--red);
}

.auth-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
    .auth-user-info {
        top: 12px;
        right: 14px;
    }
}
