/* style.css — página de inicio (index.php) con animaciones */
:root {
  --brand: #14b5d1;
  --brand-dark: #0d9ab3;
  --text-title: #5a5e64;
  --text-subtitle: #6a6a6a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

/* Layout principal: izquierda | derecha */
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- LADO IZQUIERDO ---- */
.login__left {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.panel {
  padding-top: 130px;
  position: relative;
  width: min(500px, 100%);
}

/* Logo grande posicionado arriba */
.brand {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.brand__logo {
  /* --- TAMAÑO DEL LOGO --- */
  height: 450px;   /* Aumenta o disminuye para hacerlo más grande o chico */
  width: auto;
  display: block;
  object-fit: contain;
  animation: fadeUp 0.8s ease forwards;

  /* --- COORDENADAS DEL LOGO --- */
  position: relative;
  top: -185px;      /* Sube (-) o baja (+) */
  left: -125px;     /* Izquierda (-) o derecha (+) */
}

/* Título con animación */
h1 {
  font-size: 58px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 20px;
  letter-spacing: -2px;
  animation: fadeLeft 0.9s ease forwards;
}

h1 span { color: var(--brand); }

.subtitle {
  font-size: 18px;
  color: var(--text-subtitle);
  line-height: 1.5;
  margin-bottom: 40px;
  animation: fadeLeft 1s ease 0.1s forwards;
  opacity: 0;
}

/* Botones con animación retardada */
.actions {
  display: flex;
  gap: 15px;
  animation: fadeUp 1s ease 0.3s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 55px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(20,181,209,0.45);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn--secondary:hover {
  background: var(--brand);
  color: white;
}

/* ---- LADO DERECHO (imagen de fondo) ---- */
.login__right {
  background-image: url("../img/fondo-pagina-inicio.png");
  background-size: cover;
  background-position: center;
  animation: zoomFade 1.2s ease forwards;
}

/* ---- ANIMACIONES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes zoomFade {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login__right { height: 35vh; order: -1; }
  h1 { font-size: 40px; }
  .actions { flex-direction: column; }
  .brand__logo { height: 80px; }
}