:root {
  --green: #16a34a;
  --green2: #22c55e;
  --blue: #1455d9;
  --text: #071427;
  --muted: #64748b;
  --border: #dbe4ef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

/* =========================
   DESKTOP
========================= */

.login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
}

.login-visual {
  min-height: 100vh;
  background-image: url("../assets/backgrounds/bg_telaloginloja_desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-side {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  overflow: hidden;
  background: #fff;
}

.login-side-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/backgrounds/bg_login_box_desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,.96);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 25px 70px rgba(15,23,42,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #eafaf0;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 34px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h2 {
  font-size: 32px;
  color: var(--text);
}

.login-header p {
  margin-top: 8px;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.input-wrap {
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: white;
  transition: .25s;
}

.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20,85,217,.10);
}

.input-icon {
  color: var(--green);
  font-size: 18px;
}

.input-wrap input {
  border: 0;
  outline: 0;
  height: 100%;
  flex: 1;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  background: transparent;
}

.toggle-password {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  font-size: 16px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.remember {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  gap: 8px;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.login-options a,
.login-footer a {
  color: #1455d9;
  text-decoration: none;
  font-weight: 700;
}

.login-btn {
  height: 58px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: white;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 16px 35px rgba(17,70,216,.20);
  transition: .25s;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-message {
  text-align: center;
  min-height: 20px;
  font-size: 14px;
}

.login-footer {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
}

/* =========================
   MOBILE - PALCO FIXO
========================= */

@media(max-width: 980px) {
  html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #020817;
}

 .login-fixed {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    display: block;
    overflow: hidden;

    background:
      linear-gradient(rgba(7,20,39,.05), rgba(7,20,39,.12)),
      url("../assets/backgrounds/bg_telaloginloja_mobile.webp");

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

  .login-visual,
  .login-side-bg {
    display: none;
  }

  .login-side {
    position: absolute;
    inset: 0;
    min-height: unset;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    overflow: hidden;
    display: block;
  }

  .login-card {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);

    width: 78vw;
    max-width: 330px;
    min-width: 290px;

    padding: 24px 22px 22px;
    border-radius: 22px;

    background: rgba(7,20,39,.08);
    border: 1px solid rgba(34,197,94,.40);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
      0 18px 45px rgba(0,0,0,.22),
      inset 0 0 0 1px rgba(255,255,255,.05);
  }

  .login-avatar {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    font-size: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(34,197,94,.38);
    color: var(--green2);
  }

  .login-header {
    margin-bottom: 20px;
  }

  .login-header h2 {
    font-size: 23px;
    color: white;
  }

  .login-header p {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.68);
  }

  form {
    gap: 14px;
  }

  label {
    color: white;
    font-size: 13px;
  }

  .input-wrap {
    height: 47px;
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    overflow: hidden;
  }

  .input-wrap input {
    color: #fff;
    font-size: 14px;
    background: transparent !important;
    -webkit-text-fill-color: #fff;
  }

  .input-wrap input::placeholder {
    color: rgba(255,255,255,.55);
  }

  .input-wrap input:-webkit-autofill,
  .input-wrap input:-webkit-autofill:hover,
  .input-wrap input:-webkit-autofill:focus,
  .input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px rgba(255,255,255,.10) inset !important;
    transition: background-color 9999s ease-in-out 0s;
  }

  .input-icon {
    color: var(--green2);
  }

  .toggle-password {
    color: rgba(255,255,255,.75);
  }

  .login-options {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 12px;
  }

  .remember {
    color: white;
  }

  .login-options a,
  .login-footer a {
    color: #4ea1ff;
  }

  .login-btn {
    height: 49px;
    border-radius: 13px;
    font-size: 15px;
  }

  .login-footer {
    margin-top: 18px;
    flex-direction: column;
    text-align: center;
    color: rgba(255,255,255,.85);
    font-size: 13px;
  }
}

/* Celulares baixos */
@media(max-width: 980px) and (max-height: 740px) {
  .login-card {
    top: 54%;
    width: 76vw;
    max-width: 315px;
    padding: 20px 20px 18px;
  }

  .login-avatar {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    font-size: 17px;
  }

  .login-header {
    margin-bottom: 14px;
  }

  .login-header h2 {
    font-size: 21px;
  }

  .login-header p {
    font-size: 12px;
  }

  form {
    gap: 11px;
  }

  .input-wrap {
    height: 42px;
  }

  .login-btn {
    height: 44px;
  }

  .login-footer {
    margin-top: 12px;
  }
}

/* Celulares altos */
@media(max-width: 980px) and (min-height: 850px) {
  .login-card {
    top: 50%;
  }
}

