/* Cobrix - Login & Auth Pages */

* { box-sizing: border-box; margin: 0; padding: 0; }
body.login-page {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #070b22;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.login-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,74,253,.22) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: bgMove1 8s ease-in-out infinite alternate;
}
.login-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(45,52,148,.25) 0%, transparent 70%);
  bottom: -200px; left: -200px;
  animation: bgMove2 10s ease-in-out infinite alternate;
}
@keyframes bgMove1 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(50px,30px) scale(1.1); }
}
@keyframes bgMove2 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-40px,40px) scale(1.15); }
}

/* Grid dots pattern */
.login-bg .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Split layout */
.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
  margin: 24px;
}

/* Left panel */
.login-left {
  flex: 1;
  background: linear-gradient(145deg, #101838 0%, #0a0f2b 50%, #0d1333 100%);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,74,253,.28) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.login-left::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(45,52,148,.3) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  position: relative;
}
/* Lockup completo da marca (versao clara, para o painel escuro) */
.brand-logo-img {
  width: 235px;
  max-width: 100%;
  height: auto;
  display: block;
}
/* Selo que diferencia o portal interno da area de clientes */
.badge-portal {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,74,253,.18);
  border: 1px solid rgba(77,132,255,.35);
  color: #4d84ff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.hero-title span { color: #4d84ff; }
.hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 40px;
}

.features-list { display: flex; flex-direction: column; gap: 14px; position: relative; }
.feature-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.feature-icon {
  width: 32px; height: 32px;
  background: rgba(0,74,253,.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #4d84ff;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Right panel */
.login-right {
  width: 420px;
  background: #ffffff;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e2030;
  margin-bottom: 6px;
}
.login-subtitle {
  font-size: .84rem;
  color: #6b7280;
  margin-bottom: 32px;
}

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: .88rem;
  color: #1e2030;
  background: #fafafa;
  transition: all .2s ease;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.form-input:focus {
  border-color: #004afd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,52,148,.1);
}
.form-input::placeholder { color: #9ca3af; }

.input-wrapper {
  position: relative;
  margin-bottom: 16px;
}
.input-wrapper .input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: .85rem;
}
.input-wrapper .form-input { padding-left: 40px; }
.input-wrapper .toggle-pass {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
  background: none; border: none;
  font-size: .85rem;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: .78rem;
  color: #004afd;
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 24px;
}
.forgot-link:hover { text-decoration: underline; }

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0d1333, #004afd);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,31,75,.3);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: #9ca3af;
  font-size: .78rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.register-link {
  text-align: center;
  margin-top: 24px;
  font-size: .82rem;
  color: #6b7280;
}
.register-link a {
  color: #004afd;
  font-weight: 700;
  text-decoration: none;
}
.register-link a:hover { text-decoration: underline; }

.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: .72rem;
  color: #9ca3af;
}
.login-footer a { color: #9ca3af; text-decoration: none; }
.login-footer a:hover { color: #6b7280; }

.error-msg {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 16px;
  display: none;
  align-items: center; gap: 8px;
}
.error-msg.show { display: flex; }

/* Responsive */
@media (max-width: 768px) {
  .login-left { display: none; }
  .login-wrapper { max-width: 440px; }
  .login-right { width: 100%; padding: 40px 32px; }
}
@media (max-width: 480px) {
  .login-right { padding: 32px 24px; }
  .login-wrapper { margin: 12px; border-radius: 16px; }
}
