@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* === BRAND – TECNISOFTWARE === */
  --primary: #2f5da8;        /* azul logo */
  --primary-dark: #244a86;
  --primary-soft: #3f73c6;

  /* === NEUTROS === */
  --bg: #0a0f18;
  --bg-soft: #111827;
  --card: #151c2c;
  --ink: #0b1220;
  --muted: #9aa4bf;
  --white: #ffffff;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* === RESET === */
*{ box-sizing: border-box; }
html,body{ height: 100%; }

body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(47,93,168,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(47,93,168,.12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0a0f18 100%);
  color: var(--white);
}

/* === LAYOUT === */
.page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
}

.hero{
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

/* === BRAND === */
.brand{
  text-align: left;
}

.brand__logo{
  width: clamp(80px, 10vw, 110px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 20px rgba(47,93,168,.4));
}

.brand__title{
  margin: 0 0 6px 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand__subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* === CARD === */
.card{
  background: linear-gradient(180deg, rgba(21,28,44,.95) 0%, rgba(17,24,39,.98) 100%);
  border: 1px solid rgba(47,93,168,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(10px);
}

/* === TABS === */
.tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(47,93,168,.12);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.tabs__btn{
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.tabs__btn:hover{
  color: var(--white);
}

.tabs__btn.is-active{
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(47,93,168,.45);
}

/* === FORM === */
.form{ display: none; }
.form.is-active{ display: block; }

.form__group{
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

label{
  font-size: 14px;
  font-weight: 500;
  color: #e6edff;
}

input{
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47,93,168,.35);
  outline: none;
  background: rgba(255,255,255,.04);
  color: var(--white);
  font-size: 15px;
}

input::placeholder{
  color: rgba(255,255,255,.5);
}

input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,93,168,.35);
}

/* === PASSWORD === */
.password{
  position: relative;
  display: grid;
}

.password__toggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(47,93,168,.15);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.password__icon{
  width: 20px;
  height: 20px;
}

.is-hidden{ display: none; }

/* === BUTTON === */
.btn{
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47,93,168,.4);
  transition: transform .06s ease, filter .2s ease;
}

.btn--primary:hover{
  filter: brightness(1.08);
}

.btn--primary:active{
  transform: translateY(1px);
}

/* === FOOTER === */
.footer{
  grid-column: 1 / -1;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
  }

  .brand{
    text-align: center;
  }

  .brand__logo{
    margin-inline: auto;
  }
}
