/* ==========================
   GOOGLE FONT
========================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ==========================
   RESET
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   BODY
========================== */

body {
  font-family: "Poppins", sans-serif;

  background: #f7f1e8;

  color: #3e3028;
}

/* ==========================
   REGISTER PAGE
========================== */

.register-page {
  min-height: 100vh;

  display: flex;
}

/* ==========================
   LEFT SIDE
========================== */

.register-container {
  width: 50%;
  min-height: 100vh;

  padding: 45px 90px;

  background: #f7f1e8;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ==========================
   REGISTER CARD
========================== */

.register-card {
  width: 100%;

  max-width: 500px;
}

/* ==========================
   LOGO
========================== */

.logo {
  font-size: 1.9rem;

  font-weight: 700;

  margin-bottom: 28px;

  color: #3e3028;
}

/* ==========================
   HEADER
========================== */

.register-header h1 {
  font-size: 2.4rem;

  margin-bottom: 10px;

  color: #3e3028;
}

.register-header p {
  color: #6f625a;

  font-size: 0.95rem;

  line-height: 1.6;

  margin-bottom: 22px;
}

/* ==========================
   INPUT GROUP
========================== */

.input-group {
  margin-bottom: 13px;
}

.input-group label {
  display: block;

  font-weight: 600;

  margin-bottom: 6px;

  color: #3e3028;
}

.input-group input {
  width: 100%;

  padding: 12px 16px;

  border: 2px solid #e4ddd5;

  border-radius: 13px;

  background: #fffdf9;

  font-family: "Poppins", sans-serif;

  font-size: 0.92rem;

  color: #3e3028;

  outline: none;

  transition: 0.3s;
}

.input-group input:focus {
  border-color: #c58b55;

  box-shadow: 0 0 0 4px rgba(197, 139, 85, 0.15);
}

/* ==========================
   REGISTER BUTTON
========================== */

.register-btn {
  width: 100%;

  padding: 13px;

  margin-top: 6px;

  border: none;

  border-radius: 13px;

  background: #c58b55;

  color: white;

  font-family: "Poppins", sans-serif;

  font-size: 0.95rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.register-btn:hover {
  background: #b87945;

  transform: translateY(-2px);
}

/* ==========================
   LOGIN LINK
========================== */

.login-link {
  text-align: center;

  margin-top: 17px;

  color: #6f625a;
}

.login-link a {
  color: #a96f3f;

  font-weight: 600;

  text-decoration: none;
}

/* ==========================
   BACK HOME
========================== */

.back-home {
  display: inline-block;

  margin-top: 17px;

  color: #a96f3f;

  font-weight: 600;

  text-decoration: none;
}

/* ==========================
   RIGHT SIDE
========================== */

.register-image {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;

  background: #4a382f;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 40px;
}

/* ==========================
   ILLUSTRATION
========================== */

.register-illustration {
  width: 70%;

  max-width: 500px;

  margin-bottom: 25px;
}

/* ==========================
   ILLUSTRATION TEXT
========================== */

.illustration-text {
  text-align: center;

  max-width: 550px;

  color: white;
}

.illustration-text h2 {
  font-size: 1.8rem;

  margin-bottom: 15px;
}

.illustration-text p {
  font-size: 0.95rem;

  line-height: 1.6;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .register-page {
    flex-direction: column;
  }

  .register-container,
  .register-image {
    width: 100%;
  }

  .register-container {
    padding: 35px 30px;
  }

  .register-image {
    min-height: 550px;
  }
}

/* ==========================
   SECURITY QUESTION
========================== */

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 18px 55px 18px 20px;

  font-family: "Poppins", sans-serif;
  font-size: 16px;

  color: #6f625c;
  background: #fffdf9;

  border: 2px solid #e3ddd6;
  border-radius: 16px;

  outline: none;
  cursor: pointer;

  appearance: none;

  transition: 0.3s ease;
}

.select-wrapper select:focus {
  border-color: #c98e50;
  box-shadow: 0 0 0 5px rgba(201, 142, 80, 0.12);
}

.select-arrow {
  position: absolute;
  right: 22px;
  top: 50%;

  transform: translateY(-50%);

  font-size: 18px;
  color: #c98e50;

  pointer-events: none;
}

/* ==========================
   FORM MESSAGE
========================== */

.form-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 24px;
  padding: 16px 18px;

  background: #f6e5d8;

  border-radius: 14px;

  color: #9b6338;

  font-size: 16px;
  line-height: 1.5;
}

.message-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.optional-label {
  margin-left: 0.35rem;
  color: #8c7a6f;
  font-size: 0.75rem;
  font-weight: 500;
}

.input-group small {
  display: block;
  margin-top: 0.4rem;
  color: #7a6b62;
  font-size: 0.78rem;
  line-height: 1.45;
}

.register-btn:focus-visible,
.login-link a:focus-visible,
.back-home:focus-visible {
  outline: 3px solid rgba(169, 111, 63, 0.38);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .register-image {
    height: auto;
    min-height: clamp(360px, 60vw, 480px);
    position: relative;
    padding: 36px 30px;
  }

  .register-illustration {
    width: min(70%, 360px);
  }
}

@media (max-width: 480px) {
  .register-container {
    min-height: auto;
    padding: 30px clamp(18px, 6vw, 24px) 36px;
  }

  .logo {
    margin-bottom: 20px;
    font-size: 1.7rem;
  }

  .register-header h1 {
    font-size: clamp(1.9rem, 9vw, 2.25rem);
    line-height: 1.2;
  }

  .register-header p {
    margin-bottom: 20px;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .input-group input,
  .select-wrapper select {
    min-height: 50px;
    font-size: 16px;
  }

  .select-wrapper select {
    padding: 12px 48px 12px 16px;
  }

  .select-arrow {
    right: 18px;
  }

  .register-btn {
    min-height: 50px;
    font-size: 16px;
  }

  .login-link a,
  .back-home {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .register-image {
    min-height: auto;
    padding: 32px clamp(18px, 6vw, 24px) 36px;
  }

  .register-illustration {
    width: min(72%, 250px);
    margin-bottom: 18px;
  }

  .illustration-text h2 {
    font-size: 1.5rem;
  }

}
