/* =========================================
   Modern Split-Screen Register Page (2025)
   ========================================= */
:root {
  --blue: #1e3a8a;
  --purple: #6d28d9;
  --gradient: linear-gradient(135deg, #3b82f6, #243b55);
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-family: "Inter", "Poppins", sans-serif;
  color: var(--text-dark);
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f9fafb;
}

/* ==============================
   LAYOUT
   ============================== */
.register-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  min-height: 100vh;
}

/* LEFT SIDE (FORM) */
.register-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 3rem 4rem;
}

.register-form-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Brand Logo */
.brand-logo img {
  width: 120px;
  margin-bottom: 2rem;
}

/* Headings */
.register-form-wrapper h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ==============================
   FORM STYLING
   ============================== */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Submit Button */
.btn-primary {
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* Register Link */
.register-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.register-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.register-link a:hover {
  text-decoration: underline;
}

/* ==============================
   RIGHT SIDE (Illustration)
   ============================== */
.register-right {
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.illustration img {
  width: 100%;
  max-width: 450px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==============================
   ALERT BOXES
   ============================== */
.error-box,
.success-box {
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.error-box {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.success-box {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .register-split {
    grid-template-columns: 1fr;
  }
  .register-right {
    display: none;
  }
  .register-left {
    padding: 2rem;
  }
}
