/* =====================================================
   CONSOLE RADLAUDO — LOGIN CSS
===================================================== */

body {
  font-family: var(--font);
  height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% -5%, rgba(74,144,226,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 105%, rgba(58,120,199,0.10) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Wrapper ──────────────────────────────────────── */

.login-wrapper {
  display: flex;
  width: 860px;
  max-width: 95vw;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.10), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Painel esquerdo ──────────────────────────────── */

.login-left {
  flex: 1;
  background: linear-gradient(150deg, #1a3560 0%, #2456a4 55%, var(--brand) 100%);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

/* Brand no painel esquerdo */
.login-left .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.login-left .brand-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.login-left .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.login-left .brand-badge {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
}

.left-content {
  z-index: 1;
}

.left-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.left-content p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
  max-width: 280px;
}

/* Features list */
.left-features {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.left-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.left-feature i {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── Painel direito ───────────────────────────────── */

.login-right {
  width: 380px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.login-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.login-right h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}

.form-group input {
  width: 100%;
  height: 44px;
  padding: 0 13px 0 38px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-subtle);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74,144,226,0.12);
}

.form-group input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.input-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  min-height: 16px;
}

.form-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
  margin-bottom: 24px;
}

.form-extra a {
  font-size: 12.5px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

/* Botão login */
.btn-login {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(74,144,226,0.32);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-login.loading .btn-spinner { display: block; }
.btn-login.loading .btn-label   { opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Aviso de acesso restrito */
.access-notice {
  margin-top: 24px;
  padding: 11px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.access-notice i {
  color: var(--brand);
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}

.access-notice span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.access-notice strong {
  color: var(--brand-deep);
}

/* ── Responsivo ───────────────────────────────────── */

@media (max-width: 700px) {
  .login-left  { display: none; }
  .login-right { width: 100%; padding: 36px 24px; }
}
