/* ============================================
   BIO ANÁLISE — Login Page Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-900: #0a1f5c;
  --primary-800: #0d285c;
  --primary-700: #0d3580;
  --primary-600: #1a4fa0;
  --primary-500: #2563be;
  --primary-400: #3b82f6;
  --accent-500:  #c8232c;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;
  --font-family: 'Inter', -apple-system, sans-serif;
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.24);
  --border-radius:    12px;
  --border-radius-sm: 8px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,79,160,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,35,44,0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f0f4ff 0%, #e8edf5 50%, #f5f0f0 100%);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4fa0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   LAYOUT WRAPPER
   ============================================ */
.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 580px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  margin: 20px;
}

/* ============================================
   LEFT PANEL — Brand
   ============================================ */
.login-brand {
  flex: 1;
  background: linear-gradient(145deg, #0d1b3e 0%, #1a4fa0 60%, #0d3580 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-width: 340px;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(200,35,44,0.08);
}

.brand-top {
  position: relative;
  z-index: 1;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.brand-logo-box {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-name-block .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.2px;
}

.brand-name-block .brand-razao {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.brand-headline {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
  margin-bottom: 14px;
}

.brand-headline span {
  color: rgba(200,35,44,0.85);
}

.brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 300px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.brand-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.brand-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-400);
  flex-shrink: 0;
}

.brand-footer {
  position: relative;
  z-index: 1;
}

.brand-footer-address {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ============================================
   RIGHT PANEL — Form
   ============================================ */
.login-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  max-width: 440px;
  background: white;
}

.login-form-header {
  margin-bottom: 32px;
}

.login-form-header .form-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 8px;
}

.login-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 14px;
  color: var(--gray-500);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-700);
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 13px;
  color: var(--gray-400);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.login-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-family: var(--font-family);
  color: var(--gray-900);
  background: var(--gray-50);
  transition: all var(--transition);
}

.login-input:focus {
  outline: none;
  border-color: var(--primary-400);
  background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.login-input::placeholder { color: var(--gray-400); }

.login-input-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}

.login-input-toggle:hover { color: var(--gray-700); }

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
}

.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-600);
  cursor: pointer;
}

.login-forgot {
  font-size: 13px;
  color: var(--primary-600);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition);
}

.login-forgot:hover { color: var(--primary-700); text-decoration: underline; }

.login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(26,79,160,0.35);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  box-shadow: 0 6px 24px rgba(26,79,160,0.45);
  transform: translateY(-1px);
}

.login-btn:active { transform: none; box-shadow: none; }

.login-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius-sm);
  color: #e53e3e;
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.login-error.show { display: flex; }

.login-form-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

.login-form-footer p {
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.login-form-footer span {
  color: var(--primary-600);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .login-brand { display: none; }
  .login-wrapper { max-width: 420px; border-radius: var(--border-radius); }
  .login-form-panel { padding: 36px 28px; max-width: 100%; }
}

@media (max-width: 480px) {
  .login-wrapper { margin: 12px; }
  .login-form-panel { padding: 28px 20px; }
}
