/* Auth pages — glass style matching ruomi.fi */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-shell {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--warm-shadow-lg);
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
    border-radius: inherit;
}

.auth-card-body {
    position: relative;
    padding: 2.25rem 2rem 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand .brand-pill {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--warm-muted);
    font-size: 0.95rem;
    margin: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--warm-muted);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--warm-line);
}

.auth-telegram-block {
    text-align: center;
    padding: 0.75rem;
    border-radius: 14px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--warm-line);
}

.auth-telegram-block p {
    font-size: 0.82rem;
    color: var(--warm-muted);
    margin-bottom: 0.65rem;
}

.auth-form .form-label {
    font-size: 0.85rem;
    color: var(--warm-muted);
    margin-bottom: 0.35rem;
}

.auth-form .form-control,
.auth-form .input-group-text {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--warm-line);
    color: var(--warm-ink);
    font-size: 0.9rem;
}

html[data-theme="light"] .auth-form .form-control,
html[data-theme="light"] .auth-form .input-group-text {
    background: rgba(255, 255, 255, 0.85);
}

.auth-form .input-group-text {
    color: var(--warm-teal);
}

.auth-form .form-check-label {
    font-size: 0.85rem;
    color: var(--warm-muted);
}

.auth-footer-links {
    text-align: center;
    margin-top: 1.25rem;
}

.auth-footer-links a {
    color: var(--warm-teal);
    font-size: 0.88rem;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: var(--warm-coral);
}

/* Ruomi modal */
.ruomi-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 10, 0.72);
    backdrop-filter: blur(6px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: ruomiFadeIn 0.25s ease;
}

.ruomi-modal {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--warm-shadow-lg);
    max-width: 420px;
    width: 100%;
    animation: ruomiSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ruomi-modal-header {
    padding: 1.1rem 1.25rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ruomi-modal-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.ruomi-modal-body {
    padding: 0.5rem 1.25rem 1.25rem;
}

.ruomi-modal-close {
    background: none;
    border: none;
    color: var(--warm-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

@keyframes ruomiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ruomiSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-telegram-widget-wrap {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
