/* =========================================================
   EASY CONTROL - LOGIN COM VÍDEO + GLASS
   Compatível com o login.html enviado
========================================================= */

:root {
  --easy-primary: #0d3b66;
  --easy-primary-strong: #082746;
  --easy-secondary: #1d8cf8;
  --easy-text: #ffffff;
  --easy-muted: rgba(255, 255, 255, 0.78);
  --easy-border: rgba(255, 255, 255, 0.24);
  --easy-card: rgba(7, 25, 44, 0.72);
  --easy-card-hover: rgba(7, 25, 44, 0.82);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }

body.easy-login-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--easy-text);
  background: #071523;
  position: relative;
}

.easy-login-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  background: #071523;
}

.easy-login-bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(3, 17, 31, 0.35), rgba(3, 17, 31, 0.35)),
    url("/static/img/login-bg-caminhao.png") center / cover no-repeat;
}

.easy-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 48%, rgba(0,0,0,.52) 100%),
    linear-gradient(180deg, rgba(4,18,31,.10) 0%, rgba(4,18,31,.42) 100%);
}

.easy-login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.easy-login-card {
  width: min(100%, 430px);
  padding: 34px 34px 24px;
  border: 1px solid var(--easy-border);
  border-radius: 24px;
  background: var(--easy-card);
  box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: easyLoginEntrance .55s ease;
  transition: .25s ease;
}

.easy-login-card:hover {
  background: var(--easy-card-hover);
  border-color: rgba(255,255,255,.32);
}

.easy-login-brand-area { text-align: center; margin-bottom: 26px; }

.easy-login-logo {
  display: block;
  width: min(100%, 245px);
  max-height: 130px;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)) drop-shadow(0 0 8px rgba(255,255,255,.12));
}

.easy-login-brand-area h1 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.6px;
  text-shadow: 0 3px 12px rgba(0,0,0,.32);
}

.easy-login-brand-area p {
  margin: 7px 0 0;
  color: var(--easy-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.easy-login-alert {
  margin-bottom: 18px;
  border: 1px solid rgba(255,120,120,.45);
  border-radius: 12px;
  background: rgba(114,18,24,.72);
  color: #fff;
  font-size: 13px;
}

.easy-login-form { width: 100%; }
.easy-form-group { margin-bottom: 17px; }

.easy-form-group label {
  display: block;
  margin: 0 0 7px 3px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
}

.easy-input-wrap {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.easy-input-wrap:focus-within {
  border-color: rgba(86,180,255,.95);
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(29,140,248,.15), 0 8px 20px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.easy-input-wrap > i {
  flex: 0 0 auto;
  color: rgba(255,255,255,.72);
  font-size: 17px;
}

.easy-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

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

.easy-input-wrap input:-webkit-autofill,
.easy-input-wrap input:-webkit-autofill:hover,
.easy-input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(8,35,61,.95) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.easy-password-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255,255,255,.78);
  cursor: pointer;
  transition: .2s ease;
}

.easy-password-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.easy-password-btn:focus-visible { outline: 2px solid rgba(86,180,255,.9); outline-offset: 2px; }

.easy-login-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--easy-primary), var(--easy-secondary));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .15px;
  box-shadow: 0 12px 25px rgba(0,62,120,.32), inset 0 1px 0 rgba(255,255,255,.16);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.easy-login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 30px rgba(0,62,120,.4), inset 0 1px 0 rgba(255,255,255,.18);
}

.easy-login-btn:active:not(:disabled) { transform: translateY(0); }
.easy-login-btn:focus-visible { outline: 3px solid rgba(95,190,255,.55); outline-offset: 3px; }
.easy-login-btn:disabled { opacity: .78; cursor: wait; }
.easy-login-btn .spinner-border { display: none; width: 16px; height: 16px; border-width: 2px; }

.easy-login-footer {
  margin-top: 22px;
  color: rgba(255,255,255,.54);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

@keyframes easyLoginEntrance {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 760px) and (min-width: 601px) {
  .easy-login-wrapper { padding-top: 18px; padding-bottom: 18px; }
  .easy-login-card { padding-top: 25px; padding-bottom: 19px; }
  .easy-login-logo { width: 205px; max-height: 100px; margin-bottom: 8px; }
  .easy-login-brand-area { margin-bottom: 18px; }
  .easy-login-brand-area h1 { font-size: 25px; }
  .easy-form-group { margin-bottom: 13px; }
  .easy-input-wrap, .easy-login-btn { min-height: 46px; }
  .easy-input-wrap input { height: 44px; }
  .easy-login-footer { margin-top: 16px; }
}

@media (max-width: 600px) {
  body.easy-login-body { overflow-y: auto; }
  .easy-login-video { object-position: 42% center; }
  .easy-login-wrapper { min-height: 100svh; padding: 18px 14px; }
  .easy-login-card { width: 100%; padding: 26px 20px 20px; border-radius: 20px; }
  .easy-login-logo { width: 205px; max-height: 105px; }
  .easy-login-brand-area h1 { font-size: 25px; }
  .easy-login-brand-area p { font-size: 12px; }
  .easy-login-footer { font-size: 10px; }
}

@media (max-width: 360px) {
  .easy-login-card { padding-left: 16px; padding-right: 16px; }
  .easy-login-logo { width: 180px; }
  .easy-login-brand-area h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .easy-login-card, .easy-input-wrap, .easy-login-btn { animation: none; transition: none; }
}
