/* Pagina LOGIN */
.login-card { width: 100%; max-width: 560px; padding: 36px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.tg-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tg-head .badge { margin-left: auto; align-self: flex-start; }
.tg-head h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 720; letter-spacing: -.04em; }
.tg-head .eyebrow { margin-bottom: 4px; }
.tg-logo { width: 56px; height: 56px; flex: 0 0 auto; }
.login-desc { margin-bottom: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.7; }
/* Insigna de stare: roșu / verde puternic, aceleași în ambele teme. */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--border-strong); border-radius: 99px; background: var(--surface-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.is-off { border-color: rgb(239 68 68 / 70%); background: rgb(239 68 68 / 14%); color: #f87171; }
.badge.is-on { border-color: rgb(34 197 94 / 70%); background: rgb(34 197 94 / 14%); color: #4ade80; }
:root[data-theme="light"] .badge.is-off { color: #dc2626; }
:root[data-theme="light"] .badge.is-on { color: #16a34a; }
.badge.is-wait { color: var(--text); }

.login-form { display: grid; gap: 18px; margin-top: 18px; }
.field { position: relative; display: grid; gap: 8px; }
.field label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.field label svg { width: 18px; height: 18px; color: var(--muted); }
.login-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); font-size: 15px; }
.login-form input::placeholder { color: var(--muted-2); }
.login-form input:disabled, .country-btn:disabled { opacity: .5; cursor: not-allowed; }
#login-ref { text-transform: uppercase; letter-spacing: .08em; }
#login-ref::placeholder { text-transform: none; letter-spacing: 0; }
.help { margin: 0; color: var(--muted); font-size: 12px; }
.login-form .button { min-height: 50px; margin-top: 4px; }

.phone-row { display: flex; gap: 8px; }
.country-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 10px 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); font-size: 15px; cursor: pointer; }
.country-btn img { border-radius: 3px; object-fit: cover; }
.country-btn svg { width: 15px; height: 15px; color: var(--muted); }
.country-pop { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow); }
.country-pop input { min-height: 40px !important; font-size: 14px !important; }
.country-pop ul { max-height: 280px; overflow-y: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.country-pop li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.country-pop li:hover, .country-pop li[aria-selected="true"] { background: var(--surface-soft); }
.country-pop li img { border-radius: 3px; object-fit: cover; }
.country-pop li span { flex: 1; }
.country-pop li b { color: var(--muted); font-weight: 600; }

.login-msg { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); color: var(--error); font-size: 13px; }
.text-button { margin-top: 14px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--text); }
.login-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.button-secondary { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); }
.button-secondary:hover { background: var(--surface-soft); }
.referral { padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-soft); font-size: 15px; font-weight: 700; letter-spacing: .14em; }
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1400px) { .login-card { padding: 24px 18px; }  }
