/* =========================================
   SISTEMA DE DISEÑO UNIFICADO - GASOLINERA
   ========================================= */

:root {
  /* Paleta de colores corporativa */
  --bg-gradient: radial-gradient(circle at center, #2b2e36 0%, #15161a 100%);
  --white: #ffffff;
  --text: #d1d5db;
  --muted: #9ca3af;
  --input-bg: rgba(0, 0, 0, 0.2);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(255, 255, 255, 0.2);
  --btn-primary: linear-gradient(to bottom, #9b1c1c, #5c0f0f);
  --btn-primary-hover: linear-gradient(to bottom, #b32020, #7a1414);
  --panel-bg: linear-gradient(135deg, #32353c 0%, #1c1d22 100%);
  --panel-border: #8e929b; /* metallic silver */
}

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

body.pantalla-login {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-gradient);
  background-color: #15161a;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1050px;
  min-height: 500px;
  background: var(--panel-bg);
  border: 5px solid #d1d5db; /* Borde más ancho y blanco/plata */
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255,255,255,0.05);
  align-items: stretch;
  gap: 0;
  position: relative;
}

/* Left Side - Brand */
.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem; /* Más espacio (margen blanco/aire) */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.login-brand .login-logo-img {
  width: 350px;
  max-width: 100%;
  margin-bottom: 2.5rem;
}

.login-system-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: #8b929e;
  text-transform: uppercase;
}

/* Right Side - Form */
.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem; /* Más espacio (margen blanco/aire) */
}

.login-form-container {
  background: transparent;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 400;
  font-size: 0.85rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.input-with-icon:focus-within {
  border-color: var(--input-focus);
  background: rgba(255, 255, 255, 0.05);
}

.input-with-icon svg:first-child {
  position: absolute;
  left: 12px;
  color: #6b7280;
}

.input-with-icon input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
}

.input-with-icon input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.password-wrapper input {
  padding-right: 2.5rem;
}

.btn-toggle-pwd {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;
  height: 24px;
}

.btn-toggle-pwd:hover {
  color: var(--white);
}

.btn-login {
  width: 100%;
  padding: 0.9rem;
  background: var(--btn-primary);
  color: var(--white);
  border: 1px solid #731212;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-login:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert.error {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert.success {
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.loading {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1rem;
}

.login-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  margin-top: 1.5rem;
}

/* =========================================
   RESPONSIVE - LOGIN
   ========================================= */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    max-width: 500px;
    border-radius: 12px;
  }
  
  .login-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
  }
  
  .login-brand .login-logo-img {
    width: 250px;
    margin-bottom: 1.5rem;
  }
  
  .login-right {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  body.pantalla-login {
    padding: 1rem;
  }
  
  .login-system-title {
    font-size: 1.4rem;
  }
  
  .login-right {
    padding: 1.5rem;
  }
}
