:root {
  --primary:   #00365a;
  --secondary: #0077c2;
  --accent:    #00b4d8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Barlow', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  margin: 0;
}

/* ── Panel izquierdo ── */
.login-branding {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.branding-bg {
  position: absolute;
  inset: 0;
  background: url('/staticfiles/img/fondo1.png') center / cover no-repeat;
  z-index: 0;
}

.branding-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 30, 60, .10) 0%,
    rgba(0, 30, 60, .25) 50%,
    rgba(0, 10, 30, .75) 100%);
  z-index: 1;
}

.branding-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 2.5rem 3rem;
  text-align: center;
}

/* ── Panel derecho ── */
.login-form-panel {
  width: 460px;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
}

.login-form-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
}

.form-label {
  font-size: .825rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-control {
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  font-size: .95rem;
  transition: all .2s;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 119, 194, .1);
}

.input-group-text {
  background: #f5f7fa;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px 0 0 10px;
  color: #666;
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: .875rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  transition: all .25s;
  box-shadow: 0 4px 15px rgba(0, 54, 90, .3);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 54, 90, .4);
  color: white;
}

@media (max-width: 768px) {
  .login-branding { display: none; }
  .login-form-panel { width: 100%; padding: 2rem 1.5rem; }
}
