﻿*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --brand: #09094D;
  --white: #ffffff;
  --gray: #f5f5f7;
  --muted: #9898b0;
  --border: #e2e2ea;
  --danger: #d0021b;
  --text: #1a1a2e;
}
html,
body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray);
}
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* TOP BAR */
.top-bar {
  background: var(--brand);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 2rem;
  flex-shrink: 0;
}
.monogram {
  display: flex;
  gap: 3px;
}
.mono-letter {
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.brand-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}
/* MAIN */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
}
/* LEFT: banners */
.left {
  background: url('../Images/ImagenLogin.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.avisos-bar {
  padding: 0.6rem 1.5rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}
/* FlexSlider reset */
.flexslider {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.flexslider .slides,
.flexslider .slides li {
  height: 100%;
}
.banner-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  height: 100%;
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}
.banner-slide > * {
  position: relative;
  z-index: 1;
}
.banner-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.banner-slide img {
  max-width: 55%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.banner-slide p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 360px;
}
.banner-slide a.btn-banner {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  background: #fff;
  border: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s;
}
.banner-slide a.btn-banner:hover {
  opacity: 0.85;
}
.banner-slide a.link-tutorial {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}
.banner-slide a.link-tutorial:hover {
  color: #fff;
}
/* FlexSlider nav dots */
.flex-control-nav {
  bottom: 12px !important;
}
.flex-control-paging li a {
  background: var(--border) !important;
}
.flex-control-paging li a.flex-active {
  background: var(--brand) !important;
}
/* RIGHT: formulario */
.right {
  background: var(--white);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
}
.form-box {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.form-head {
  margin-bottom: 2.5rem;
  text-align: center;
}
.form-head img {
  margin-left: auto;
  margin-right: auto;
}
.form-head h2 {
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.form-head p {
  font-size: 13px;
  color: var(--muted);
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  padding: 0.7rem 0.85rem;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.field input::placeholder {
  color: #ccc;
}
.field input:focus {
  border-color: var(--brand);
}
.field input.ng-invalid.ng-dirty {
  border-color: var(--danger);
}
.error-message {
  display: block;
  font-size: 11px;
  color: var(--danger);
  margin-top: 0.3rem;
}
.forgot {
  margin-bottom: 2rem;
  text-align: right;
}
.forgot a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.forgot a:hover {
  color: var(--brand);
  border-color: var(--brand);
}
.btn-submit {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 0;
}
.btn-submit:hover {
  opacity: 0.85;
}
.btn-submit:active {
  transform: scale(0.99);
}
/* FOOTER */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--brand);
}
/* RESPONSIVE */
@media (max-width: 820px) {
  .main {
    grid-template-columns: 1fr;
  }
  .right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }
  .banner-slide {
    padding: 2rem 1.5rem;
  }
}