/* public/css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb; /* Xanh dương (Royal Blue) - Màu nhấn chính */
  --primary-hover: #1d4ed8;
  --bg-color: #f1f5f9; /* Xám xanh nhạt dịu mắt */
  --text-color: #334155;
  --heading-color: #1e293b; /* Xanh Navy đậm cho tiêu đề */
  --border-color: #cbd5e1;
  --error-bg: #fee2e2;
  --error-text: #b91c1c;
  --success-bg: #dcfce3;
  --success-text: #15803d;
}

/* Lớp bọc ngoài để căn giữa trong Layout */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100%);
  background-color: var(--bg-color);
  padding: 40px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-container {
  background: white;
  padding: 30px;
  border-radius: 16px; /* Bo góc tròn hơn một chút tạo cảm giác hiện đại */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); /* Bóng đổ xám nhẹ/navy */
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-header h1 {
  color: var(--heading-color);
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800; /* Chữ đậm, nét khỏe */
  letter-spacing: -0.5px;
}

.auth-header p {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 14.5px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--heading-color);
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color);
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-color: #f8fafc; /* Nền input xám rất nhẹ */
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); /* Viền glow xanh dương khi focus */
  background-color: white;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3); /* Bóng đổ màu xanh khi hover */
}

.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Thông báo lỗi/thành công */
.alert {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  display: none; 
  font-weight: 500;
}
.alert-error { background-color: var(--error-bg); color: var(--error-text); border: 1px solid #fecaca; }
.alert-success { background-color: var(--success-bg); color: var(--success-text); border: 1px solid #bbf7d0; }

/* Link chuyển trang */
.auth-footer {
  margin-top: 25px;
  font-size: 14px;
  color: #64748b;
}
.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}
.auth-footer a:hover { 
  color: var(--primary-hover);
  text-decoration: underline; 
}