/* 
  Portal Grupo OftalmoPlus — Global Styles
  Premium, Corporate & Responsive CSS (Official Identity System)
  Full-Page Split Immersive Layout
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Official Color Palette */
  --color-brand-blue: #0D1B3D;       /* Azul Marinho - Confiança e Solidez */
  --color-brand-red: #A81D2D;        /* Vermelho - Saúde e Cuidado */
  --color-brand-cyan: #00A6B4;       /* Turquesa - Tecnologia e Modernidade */
  --color-brand-gray: #E6E8EB;       /* Cinza Claro - Equilíbrio */
  --color-brand-charcoal: #233A45;   /* Grafite - Texto e Neutralidade */
  
  /* UI Contextual Colors */
  --color-bg-dark: #070e20;
  --color-bg-slate: #0D1B3D;
  --color-bg-card: #ffffff;
  
  --color-primary: #0D1B3D;
  --color-primary-light: #00A6B4;
  --color-primary-dark: #070e20;
  
  --color-health: #059669;
  --color-health-light: #10b981;
  --color-health-bg: #ecfdf5;
  
  --color-reward: #D97706; /* Amber */
  --color-reward-light: #f59e0b;
  --color-reward-bg: #fffbeb;
  
  --color-danger: #A81D2D;
  --color-danger-bg: #fdf2f2;
  --color-success: #059669;
  --color-warning: #D97706;
  
  --color-text-main: #233A45;
  --color-text-muted: #64748b;
  --color-text-white: #ffffff;
  --color-border: #e2e8f0;
  
  /* Fonts */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(13, 27, 61, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(13, 27, 61, 0.08), 0 2px 6px -1px rgba(13, 27, 61, 0.04);
  --shadow-lg: 0 12px 20px -3px rgba(13, 27, 61, 0.12), 0 4px 8px -2px rgba(13, 27, 61, 0.06);
  --shadow-premium: 0 25px 50px -12px rgba(7, 14, 32, 0.25), 0 12px 24px -10px rgba(7, 14, 32, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f6f8fa;
  color: var(--color-brand-charcoal);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-gray);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Container */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Full-Page Split Login Container */
.login-split-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

/* Left Brand Panel (Dynamic Glowing Background) */
.login-brand-panel {
  flex: 1.3;
  position: relative;
  background: radial-gradient(circle at 20% 30%, #0d1b3d 0%, #050a17 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  overflow: hidden;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
}

/* Glowing Dynamic Orbs */
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 166, 180, 0.18) 0%, rgba(0,0,0,0) 75%);
  filter: blur(40px);
  animation: orbFloat 25s infinite alternate;
}

.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 29, 45, 0.15) 0%, rgba(0,0,0,0) 75%);
  filter: blur(50px);
  animation: orbFloat 30s infinite alternate-reverse;
}

.brand-showcase {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 35px;
  animation: fadeInUp var(--transition-slow);
}

.brand-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 440px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-description strong {
  color: var(--color-brand-cyan);
  font-weight: 600;
}

/* Right Form Panel (Clean Minimalist Form) */
.login-form-panel {
  flex: 0.85;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  z-index: 10;
  position: relative;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.login-form-wrapper {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  animation: fadeInUp var(--transition-slow);
  animation-delay: 0.1s;
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-brand-blue);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Sub-logos Grid on Left Side */
.sub-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 440px;
  margin-top: 20px;
}

.sub-logo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.sub-logo-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 166, 180, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sub-logo-card.pro-saude { border-top: 3px solid var(--color-brand-cyan); }
.sub-logo-card.oftalmo-mais { border-top: 3px solid var(--color-brand-red); }
.sub-logo-card.visao-plus { border-top: 3px solid #f59e0b; }

/* Dynamic lights animations */
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

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

/* Input Fields in Form Panel */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-brand-charcoal);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-control-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-control-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--color-brand-charcoal);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 166, 180, 0.12);
}

.form-control:focus + .form-control-icon {
  color: var(--color-brand-cyan);
}

/* Button layout */
.btn-primary {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--color-brand-cyan), #008f9c);
  color: var(--color-text-white);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 166, 180, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 180, 0.35);
  background: linear-gradient(135deg, #00b4c4, var(--color-brand-cyan));
}

.btn-primary:active {
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .login-split-container {
    flex-direction: column;
    overflow-y: auto;
  }
  .login-brand-panel {
    flex: none;
    width: 100%;
    padding: 40px 20px;
    height: auto;
    min-height: 280px;
  }
  .login-form-panel {
    flex: 1;
    width: 100%;
    padding: 40px 30px;
    box-shadow: none;
  }
  .sub-logos-grid {
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .login-brand-panel {
    min-height: 240px;
    padding: 30px 15px;
  }
  .brand-description {
    font-size: 0.95rem;
  }
  .sub-logos-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 280px;
  }
  .login-form-panel {
    padding: 30px 20px;
  }
}
