/* css/register.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  --danger: #dc2626;
  --success: #16a34a;
}

body {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card tổng thể */
.reg-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  animation: fadeIn 0.35s ease;
}

/* Cột trái */
.reg-illustration {
  flex: 1;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  text-align: center;
}
.reg-illustration h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.reg-illustration p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

/* Cột phải (Form) */
.reg-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
}

/* Gói toàn bộ nội dung form để căn giữa */
.reg-inner {
  width: 100%;
  max-width: 340px;
}

.reg-header {
  text-align: center;
  margin-bottom: 24px;
}
.reg-header h1 {
  font-size: 22px;
  color: #111827;
  margin-bottom: 6px;
}
.reg-header .subtitle {
  color: var(--muted);
  font-size: 14px;
}

/* Form */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  text-align: left;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.15s ease;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Button */
.btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  padding: 11px 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

/* Message */
.msg {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.msg.error { color: var(--danger); }
.msg.success { color: var(--success); }

/* Footer */
.reg-footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.reg-footer a {
  color: var(--accent);
  text-decoration: none;
}
.reg-footer a:hover {
  text-decoration: underline;
}

.reg-description {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}


/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .reg-card {
    flex-direction: column;
    max-width: 420px;
  }
  .reg-illustration {
    display: none;
  }
  .reg-content {
    padding: 32px 24px;
  }
}
