/* ============================================================
   Login — Taller Controller
   Paleta: Azul #0C3070 + Naranja #F7931E
   Layout: split-screen (formulario izquierda / marca derecha)
   ============================================================ */

:root {
  --tc-blue:        #0C3070;
  --tc-blue-dark:   #081F4A;
  --tc-blue-mid:    #1B4A96;
  --tc-orange:      #F7931E;
  --tc-orange-h:    #E07D0A;
  --tc-orange-glow: rgba(247,147,30,.18);
}

body {
  background: #fff;
}

/* Ocultar navbar en la página de login */
.ds-navbar { display: none !important; }

/* El layout compartido envuelve el contenido en .container.my-4;
   lo convertimos en el lienzo full-bleed del split-screen */
.container.my-4 {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

.tc-login-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------- Panel izquierdo: formulario ---------- */
.tc-login-panel-form {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 32px;
}

.tc-login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.tc-login-logo-mobile {
  display: none;
  width: 160px;
  height: auto;
  margin: 0 auto 24px;
}

.tc-login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--tc-blue);
  margin-bottom: 6px;
}

.tc-login-subtitle {
  font-size: 14px;
  color: #6B7A99;
  margin-bottom: 24px;
}

.tc-login-form-wrap .form-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--tc-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 5px;
}

.tc-login-form-wrap .form-control {
  border: 1.5px solid #D1D9E6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}

.tc-login-form-wrap .form-control:focus {
  border-color: var(--tc-orange);
  box-shadow: 0 0 0 3px var(--tc-orange-glow);
  outline: none;
}

/* Enlace "¿Olvidaste tu clave?" */
.tc-link {
  color: var(--tc-orange);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}
.tc-link:hover { color: var(--tc-orange-h); text-decoration: underline; }

/* Botón principal naranja */
.btn-tc-primary {
  background: linear-gradient(135deg, var(--tc-orange) 0%, #FFB347 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  transition: all .18s;
  box-shadow: 0 4px 14px rgba(247,147,30,.35);
}

.btn-tc-primary:hover {
  background: linear-gradient(135deg, var(--tc-orange-h) 0%, var(--tc-orange) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247,147,30,.45);
  color: #fff;
}

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

/* Botón instalar PWA */
.btn-tc-pwa {
  border: 1.5px solid var(--tc-blue);
  color: var(--tc-blue);
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  padding: 9px;
  transition: all .18s;
}

.btn-tc-pwa:hover {
  background: var(--tc-blue);
  color: #fff;
}

/* Separador */
.tc-divider {
  border: none;
  border-top: 1px solid #E8EDF5;
  margin: 20px 0;
}

/* Alerts dentro del login */
.tc-login-form-wrap .alert {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

/* ---------- Panel derecho: marca ---------- */
.tc-login-panel-brand {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--tc-blue-dark) 0%, var(--tc-blue) 55%, var(--tc-blue-mid) 100%);
}

/* Resplandor decorativo detrás del logo */
.tc-login-panel-brand::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tc-orange-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Franja naranja del borde entre paneles */
.tc-login-panel-brand::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--tc-orange) 0%, #FFB347 100%);
}

.tc-login-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 48px;
}

.tc-login-logo-brand {
  width: 640px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}

.tc-login-brand-tagline {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: #D8E1F5;
  letter-spacing: .02em;
}

/* ---------- Responsive: apilar en pantallas angostas ---------- */
@media (max-width: 991.98px) {
  .tc-login-panel-brand {
    display: none;
  }
  .tc-login-panel-form {
    flex: 1 1 100%;
  }
  .tc-login-logo-mobile {
    display: block;
  }
}
