/* Import font Roboto hỗ trợ tiếng Việt */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary-color: #fca415;
  --bg-overlay: rgba(0,0,0,0.3);
}
body {
  overflow-y: hidden; /* Ẩn cuộn dọc */
}
/* Reset và font chung */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: #fff;
}

/* Container toàn màn hình chia đôi */
.login-container {
  display: flex;
  height: 100vh;
}

/* Bên trái: hình nền + overlay */
.login-left {
  flex: 2;
  position: relative;
}
.login-left img {
  width: 100%; height: 100%; object-fit: cover;
}
.login-left .overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 4rem;
}
.login-left .overlay h1.text-primary {
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.login-left .overlay p {
  font-size: 1rem;
  font-weight: 300;
  max-width: 500px;
  line-height: 1.5;
}

/* Bên phải: form login */
.login-right {
  flex: 1;
  max-width: 450px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-right .logo {
  max-width: 180px;
  margin-bottom: 3rem;
}
.login-right h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1rem;
}

.login-form {
  width: 100%;
}
.login-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.login-form label.required:before {
  content: "* ";
  color: #e74c3c;
}
.login-form input {
  width: 100%;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  transition: border-color 0.3s ease;
}
.login-form input:focus {
  outline: none;
  border-bottom-color: var(--primary-color);
} 
.password-wrapper {
  position: relative;
}
.password-wrapper .toggle-password {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 1rem;
}

.login-form button {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.login-form button:hover { background: #e5a400; }

.login-form .forgot {
  display: block;
  text-align: right;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #3498db;
  text-decoration: none;
}
.login-form .forgot:hover { text-decoration: underline; }

.register {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.register a {
  color: var(--primary-color);
  text-decoration: none;
}
.register a:hover { text-decoration: underline; }

/* Footer bottom-left */
.footer-link-wrapper {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}
.footer-link-wrapper .footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
}
.footer-link-wrapper .footer-link:hover { color: var(--primary-color); }

$1

/* Hide native password reveal icon in Edge/IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
/* Alert banner */
.alert-banner {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.alert-banner.success {
  background-color: #e6ffed;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.alert-banner.error {
  background-color: #ffe6e6;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.alert-banner a {
  color: inherit;
  text-decoration: underline;
  margin-left: 0.25rem;
}
