/* Auth screens — paritate APK AuthShell */
.auth-screen {
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(48,209,88,0.09), transparent 50%),
    var(--bg);
}

.ui-lang-mount--auth {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
  margin-top: 2.5rem;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.auth-logo {
  width: min(84px, 26vw);
  height: auto;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 18px rgba(48,209,88,0.45));
}

.auth-page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.auth-page-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.auth-error {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,69,58,0.12);
  color: #ff8a84;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-info {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-busy {
  margin: 1.25rem auto 0;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-panel {
  margin-top: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.auth-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(48,209,88,0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.auth-field-hint {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.35;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.35rem 0;
  text-align: left;
}

.auth-link-btn:hover { text-decoration: underline; }

.auth-primary-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #041208;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-secondary-btn {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-switch {
  width: 100%;
  margin-top: 0.85rem;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
}

.auth-switch:hover { color: var(--text); }

.auth-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.profile-readonly {
  opacity: 0.85;
}

.profile-meta {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 0.92rem;
}

.profile-logout-wrap {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-logout {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,69,58,0.35);
  background: rgba(255,69,58,0.1);
  color: #ff8a84;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-logout:hover {
  background: rgba(255,69,58,0.18);
}
