:root {
  --navy-900: #12153a;
  --navy-800: #1a1e5c;
  --navy-700: #2d3194;
  --navy-600: #3d42b0;
  --orange-700: #c9600a;
  --orange-600: #f58114;
  --orange-500: #ff9a2e;
  --text-muted: #64748b;
  --border-color: #dbe0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(160deg, rgba(18, 21, 58, 0.93), rgba(45, 49, 148, 0.88)),
    url("/assets/img/background.jpg") center/cover no-repeat,
    var(--navy-900);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: #fff;
  border-radius: 50% / 70px;
  box-shadow: 0 20px 50px rgba(10, 12, 40, 0.45);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

/* Phan dau: nen xanh dam thuong hieu, logo + ten cong ty */
.login-header {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  padding: 46px 34px 22px;
  text-align: center;
  border-bottom: 4px solid var(--orange-600);
  position: relative;
}

.login-logo {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.company-name {
  margin: 0 0 6px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.45;
  text-transform: uppercase;
}

.login-header .subtitle {
  margin: 0;
  color: var(--orange-500);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Phan than: form dang nhap tren nen trang */
.login-body {
  padding: 30px 34px 48px;
}

.login-body h1 {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-800);
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px rgba(245, 129, 20, 0.18);
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 0.15s ease, transform 0.05s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.08);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.page-footer {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  text-align: center;
}
