* { margin: 0; padding: 0; box-sizing: border-box; }

:focus-visible {
  outline: 2px solid #069669;
  outline-offset: 2px;
}

body, html { height: 100%; width: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  background: url("img/login/imagen.png") center center / cover no-repeat;
}

.background-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 15, 20, 0.45);
  z-index: 1;
}

.left-side {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 60%;
  height: auto;
}

.publicis-logo {
  width: 250px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.login-card {
  background: white;
  width: 450px;
  padding: 60px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-right: 10%;
  position: relative;
  z-index: 3;
  text-align: center;
}

.logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.welcome-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7159EE 0%, #069669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 40px;
  font-weight: 400;
}

.login-button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #7159EE 0%, #069669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-button:disabled {
  opacity: 0.85;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 89, 238, 0.3);
}

.login-button:active { transform: translateY(0); }

.login-error {
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  color: #991B1B;
  font-size: 0.85rem;
  text-align: left;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.support-text {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.6;
}

.support-text a {
  color: #069669;
  text-decoration: none;
  font-weight: 500;
}

.support-text a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .left-side { display: none; }
  .login-card { margin: 0 auto; }
}

@media (max-width: 480px) {
  .login-card { width: 90%; padding: 40px 30px; margin: 0 auto; }
  .logo-text { font-size: 1.3rem; }
  .welcome-text { font-size: 2rem; }
  .login-button { padding: 14px 20px; font-size: 1rem; }
}
