/* ===== ESTILOS PREMIUM PARA LOGIN PERSONALIZADO ===== */
/* Archivo: css/login-styles.css */

/* Contenedor principal */
.login-hero {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0 0 0;
}

.login-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  min-height: 600px;
}

/* Columna de Branding */
.login-branding {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-branding::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
}

.brand-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.brand-title span {
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

/* Columna del Formulario */
.login-form-container {
  padding: 3rem;
  display: flex;
  align-items: center;
  background: #f8fafc;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Estilos para Ultimate Members Personalizado */
.ultimate-member-custom-login {
  width: 100%;
}

.um-login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.um-login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.um-login-header p {
  color: #64748b;
  font-size: 1rem;
}

.um-form-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

/* Personalizar los campos del formulario Ultimate Members */
.um-form-container input[type="text"],
.um-form-container input[type="password"],
.um-form-container input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.um-form-container input[type="text"]:focus,
.um-form-container input[type="password"]:focus,
.um-form-container input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.um-form-container .um-button {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.um-form-container .um-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(102, 126, 234, 0.6);
}

/* Mensajes */
.um-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.um-message.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.um-message.success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Enlaces */
.login-links {
  margin-top: 2rem;
  text-align: center;
}

.link-item {
  margin-bottom: 0.75rem;
}

.forgot-password-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #667eea;
  text-decoration: underline;
}

.register-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
}

.register-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Usuario logueado */
.user-welcome {
  text-align: center;
  padding: 2rem;
}

.welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.user-welcome h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.btn-logout {
  background: transparent;
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-logout:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .login-branding {
    padding: 3rem 2rem;
  }

  .brand-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .login-form-container {
    padding: 2rem 1rem;
  }

  .um-form-container {
    padding: 1.5rem;
  }

  .welcome-actions {
    flex-direction: column;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.um-form-container {
  animation: fadeInUp 0.6s ease-out;
}

.feature-item {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-item:nth-child(3) {
  animation-delay: 0.3s;
}
