*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #334155;
  background: #fff;
}

.layout {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .layout {
    flex-direction: row;
  }
}

/* Panel izquierdo */
.panel-brand {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 2.5rem 2rem;
  color: #fff;
}

@media (min-width: 1024px) {
  .panel-brand {
    width: 50%;
    min-height: 100vh;
    padding: 3.5rem 3rem;
  }
}

.panel-brand__bg {
  position: absolute;
  inset: 0;
  background: url('assets/login-bg.jpg') center / cover no-repeat;
}

.panel-brand__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 76, 0.75);
}

.panel-brand__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.panel-brand__logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.panel-brand__tagline {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.features {
  display: none;
  margin-top: 3rem;
  width: 100%;
  max-width: 32rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .features {
    display: grid;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.feature__label {
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.panel-brand__slogan {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: none;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
  .panel-brand__slogan {
    display: block;
  }
}

.panel-brand__slogan strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: #06b6d4;
}

.panel-brand__legal {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
  text-align: right;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 1024px) {
  .panel-brand__legal {
    position: absolute;
    right: 3rem;
    bottom: 3.5rem;
    margin-top: 0;
    font-size: 0.75rem;
  }
}

.panel-brand__legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.panel-brand__legal a:hover {
  color: #fff;
}

.panel-brand__legal span[aria-hidden='true'] {
  color: rgba(255, 255, 255, 0.4);
}

/* Panel derecho */
.panel-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .panel-main {
    width: 50%;
    padding: 2.5rem 4rem;
  }
}

@media (min-width: 1280px) {
  .panel-main {
    padding: 2.5rem 6rem;
  }
}

.panel-main__inner {
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
}

.panel-main__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.panel-main__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0d9488;
  font-size: 1.25rem;
}

.panel-main__title {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #334155;
}

.panel-main__subtitle {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #64748b;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #0d9488;
  font-size: 0.8125rem;
  font-weight: 600;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: #06b6d4;
}

.btn-secondary {
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  border-color: rgba(13, 148, 136, 0.4);
  color: #0d9488;
}

.panel-main__note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.panel-main__note a {
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
}

.panel-main__note a:hover {
  text-decoration: underline;
}

.panel-main__trust {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.panel-main__trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.panel-main__trust .trust-item i {
  color: #0d9488;
}

.panel-main__trust .divider {
  display: none;
  width: 1px;
  height: 0.75rem;
  background: #e2e8f0;
}

@media (min-width: 640px) {
  .panel-main__trust .divider {
    display: block;
  }
}
