/* ============================================================
   Auth Module — Login Page CSS
   CESCIJUC CI4 Project
   ============================================================ */

body.login-page {
  background: #f5f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Wrapper */
.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: 960px;
  margin: auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(67,89,113,.18);
}

/* Columna decorativa */
.login-cover {
  flex: 1;
  background: linear-gradient(145deg, #696cff 0%, #4e51cc 60%, #3c3f9e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.login-cover::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.login-cover::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -60px;
  left: -60px;
}

.login-cover-inner {
  text-align: center;
  z-index: 1;
  position: relative;
}

.login-brand-logo {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
}

.login-cover-title {
  color: #fff;
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.login-cover-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 2rem;
}

.login-cover-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.login-cover-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}

.login-cover-dots span:first-child {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Formulario */
.login-form-wrap {
  width: 420px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.login-form-inner {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

/* Logo encima del panel derecho */
.login-logo {
  margin-bottom: 1.75rem;
}

.login-logo img {
  max-width: 60%;
  height: auto;
  object-fit: contain;
}

.login-brand-logo-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #696cff 0%, #9c9fff 100%);
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.login-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #566a7f;
  margin-bottom: 0.375rem;
  text-align: center;
}

.login-subtitle {
  font-size: 0.9375rem;
  color: #a1acb8;
  margin-bottom: 1.75rem;
  line-height: 1.5;
  text-align: center;
}

/* Alerta de error */
.login-alert {
  background: rgba(255,62,29,.08);
  border: 1px solid rgba(255,62,29,.2);
  border-radius: 0.5rem;
  color: #ff3e1d;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

/* Botón Google */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #566a7f;
  border: 1px solid #d9dee3;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background: #f8f8ff;
  border-color: #696cff;
  box-shadow: 0 0 0 0.2rem rgba(105,108,255,.15);
  color: #696cff;
  text-decoration: none;
}

.btn-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Nota inferior */
.login-note {
  font-size: 0.8125rem;
  color: #a1acb8;
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 767.98px) {
  .login-wrapper {
    max-width: 100%;
    box-shadow: none;
    min-height: 100vh;
  }

  .login-form-wrap {
    width: 100%;
    padding: 2rem 1.5rem;
  }
}
