*, ::before, ::after { box-sizing: border-box; }

:root {
  --primary:       #D4AF37;
  --primary-hover: #B5952F;
  --bg-light:      #F8F9FA;
  --surface-light: #FFFFFF;
  --text-main:     #333333;
  --text-muted:    #666666;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-900:      #111827;
  --azure-blue:    #007FFF;
}

body {
  background-color: rgb(248 249 250 / var(--tw-bg-opacity, 1));
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  min-height: 100vh;
}

.required {
  color: #dc2626;
  margin-left: 2px;
}

/* Card wrapper */
.signup-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  overflow: hidden;
  max-width: 64rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .signup-card {
    flex-direction: row;
  }
}

/* Left hero panel */
.hero-panel {
  position: relative;
  min-height: 400px;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-panel {
    width: 50%;
    min-height: 600px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
    url('/assets/image/hello_bg.png');
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  width: 100%;
  height: 100%;
}

.hero-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 300;
}

/* Right form panel */
.form-panel {
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .form-panel {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .form-panel {
    width: 50%;
  }
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

/* Form field groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.field-group.password-field {
  margin-bottom: 0.5rem;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .name-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Inputs */
.form-input {
  width: 100%;
  height: 2.5rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0 0.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: #c4ceda;
}

.form-input:focus {
  border-color: #d4af35;
  box-shadow: 0 0 0 1px #d4af35;
}

.form-input.is-invalid {
  border-color: #dc2626;
}

.form-input.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

/* Password toggle wrapper */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .form-input {
  padding-right: 2.5rem;
}

.toggle-pw {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
}

/* Validation message */
.invalid-msg {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 2px;
}

/* Password strength */
.strength-bar-wrap {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin-top: 0.25rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.3s, background-color 0.3s;
}

.strength-text {
  font-size: 0.75rem;
  margin-top: 0.125rem;
  display: block;
  min-height: 0.875rem;
  line-height: 0.875rem;
}

/* Submit button */
.btn-submit {
  display: block;
  margin: 1.5rem auto 0;
  height: 2.5rem;
  padding: 0 2.5rem;
  background-color: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-submit:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}

/* Back link */
.back-link-wrap {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: #d4af35;
}

.back-link .material-icons {
  font-size: 1rem;
}

/* Alert */
.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Outer layout */
.page-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .page-wrapper {
    padding: 5rem 4rem 4rem;
  }
}

.mb-8 {
  margin-bottom: 2rem;
}
