@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #2563eb; /* Nền xanh dương hoàng gia bao quanh */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Wrapper */
.login-wrapper {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.login-container {
  display: flex;
  background-color: #ffffff;
  width: 100%;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-promo-panel {
    width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 30px !important;
  }
  .login-form-panel {
    width: 100% !important;
    padding: 32px 24px !important;
  }
}

/* Cột Trái: Promo Panel */
.login-promo-panel {
  width: 45%;
  background-color: #0f60ff; /* Màu xanh neon tươi sáng */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.promo-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 20px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.promo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.promo-body h1 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.promo-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.promo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
}

/* Cột Phải: Form Panel */
.login-form-panel {
  width: 55%;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-content {
  width: 100%;
  max-width: 360px;
}

.form-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #111827;
  padding: 12px 16px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.terms-text {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 20px;
}

.terms-text a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

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

.btn-submit {
  width: 100%;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.btn-submit:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-submit:active {
  background-color: #1e40af;
}

.toggle-mode-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  color: #4b5563;
}

.btn-toggle-mode {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.btn-toggle-mode:hover {
  text-decoration: underline;
}

/* Status messages */
.status-message {
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  display: none;
  margin-top: 16px;
  text-align: center;
}

.status-message.success {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
  display: block;
}

.status-message.error {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  display: block;
}
