@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body.es-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.es-login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  width: 100%;
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.es-login-brand {
  background: linear-gradient(145deg, #0f766e 0%, #0d9488 40%, #134e4a 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.es-login-brand::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}

.es-login-brand::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  bottom: -60px;
  left: -40px;
}

.es-login-brand .brand-logo {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 28px;
}

.es-login-brand h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.es-login-brand p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 32px;
  max-width: 320px;
}

.es-login-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.9;
}

.es-login-features li i {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.es-login-form-panel {
  background: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.es-login-form-panel h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  padding: 0;
  float: none;
}

.es-login-form-panel .subtitle {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 32px;
}

.es-form-group {
  margin-bottom: 20px;
}

.es-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.es-form-group input[type="text"],
.es-form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.es-form-group input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.es-captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.es-captcha-row input {
  flex: 1;
  max-width: 140px;
}

.es-captcha-row img {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  height: 42px;
  cursor: pointer;
}

.es-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}

.es-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
}

.es-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
}

.es-login-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .es-login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .es-login-brand {
    padding: 32px 28px;
  }

  .es-login-brand h1 {
    font-size: 24px;
  }

  .es-login-features {
    display: none;
  }

  .es-login-form-panel {
    padding: 32px 28px;
  }
}
