﻿/* Giao diá»‡n Ä‘Äƒng nháº­p / Ä‘Äƒng kÃ½ â€” nhÃ¡nh lite, bÃ¡m theo thiáº¿t káº¿ máº«u. */

:root {
  --green: #8b5a2b;
  --green-dark: #6f401f;
  --wood-light: #c89b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #e9ecef;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.App {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Thanh tiÃªu Ä‘á» ---------- */

.header {
  background: linear-gradient(135deg, var(--green) 0%, var(--wood-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
  padding: 15px 0;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

/* ---------- Khu vá»±c form + ná»n ---------- */

.app123 {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* áº¢nh ná»n cÆ°á»›i, lÃ m nháº¡t nháº¹ Ä‘á»ƒ chá»¯ vÃ  Ã´ nháº­p váº«n ná»•i rÃµ */
.bg {
  position: absolute;
  inset: 0;
  background: url(/images/login3_3.webp) center/cover no-repeat;
  z-index: 0;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .5) 0%,
    rgba(255, 255, 255, .28) 40%,
    rgba(255, 255, 255, .1) 100%
  );
}

.form-lg {
  position: relative;
  z-index: 2;
  padding: 22px 22px 30px;
}

.form-lg h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 8px 0 26px;
}

/* ---------- Ã” nháº­p ---------- */

.inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.inputs > div { position: relative; }

.ip-lg {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  padding: 0 44px 0 16px;
  font-size: 15px;
  color: #333;
  outline: none;
}

.ip-lg::placeholder { color: #9aa0a6; }
.ip-lg:focus { box-shadow: 0 0 0 2px var(--green), 0 2px 8px rgba(0, 0, 0, .14); }

/* Cá» + mÃ£ vÃ¹ng náº±m bÃªn trÃ¡i Ã´ sá»‘ Ä‘iá»‡n thoáº¡i */
.flag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  pointer-events: none;
  z-index: 2;
}

.flag-vn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  background: #da251d;
  color: #ffcd00;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
}

/* NÃºt hiá»‡n/áº©n máº­t kháº©u */
.change-visible {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.change-visible svg { width: 22px; height: 22px; fill: currentColor; }
.change-visible.on { color: var(--green-dark); }

/* ---------- NÃºt ---------- */

.btn-lg {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green) 0%, var(--wood-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(107, 62, 28, .25);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn-lg:hover { background: linear-gradient(135deg, var(--green-dark) 0%, #a56b33 100%); box-shadow: 0 6px 12px rgba(107, 62, 28, .32); }
.btn-lg:active { transform: translateY(1px); }
.btn-lg:disabled { opacity: .65; cursor: not-allowed; }

/* ---------- LiÃªn káº¿t ---------- */

.p-lg { text-align: center; margin: 16px 0 0; }

.a-lg {
  color: #2b2b2b;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.a-lg:hover { text-decoration: underline; }

/* VÃ¹ng hiá»ƒn thá»‹ lá»—i (auth.js chÃ¨n vÃ o) */
.auth-error {
  color: #d63031;
  font-size: 14px;
  margin: 0 0 12px;
  min-height: 18px;
  text-align: center;
  font-weight: 600;
}

/* ---------- RiÃªng trang Ä‘Äƒng kÃ½ ---------- */

.logo-login {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 16px 0 4px;
}

.logo-login img {
  width: 150px;
  height: 108px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

/* Dáº£i trÃ¡i tim trang trÃ­ dÆ°á»›i cÃ¹ng trang Ä‘Äƒng kÃ½.
   áº¢nh trong suá»‘t, chá»‰ cÃ³ tim á»Ÿ Ä‘Ã¡y, nÃªn neo xuá»‘ng Ä‘Ã¡y vÃ  Ä‘á»ƒ ná»•i trÃªn ná»n. */
.bg-bot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.bg-bot img { width: 100%; display: block; }


