/* ========================================
   REGISTER PAGE - Matches login.css design
   ======================================== */

/* ========================================
   PAGE LAYOUT
   ======================================== */
body.page-register {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  animation: fadeIn 0.5s ease;
}

body.page-register #app-header,
body.page-register header {
  background: transparent;
  background-color: transparent;
  border-bottom: none;
  position: relative;
  z-index: 1000;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-register main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  background-color: transparent;
  grid-template-columns: none;
  column-gap: 0;
  grid-gap: 0;
  gap: 0;
}

body.page-register main > * {
  grid-column: unset;
}

body.page-register main > img {
  display: none;
}

/* ========================================
   DASHBOARD HEADER + YELLOW CIRCLE
   ======================================== */
body.page-register .dashboard-header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 20px;
}

body.page-register .dashboard-header .header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px auto;
  background: #F7E226;
  background-color: #F7E226;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(247, 226, 38, 0.4);
}

body.page-register .dashboard-header .header-icon i {
  font-size: 26px;
  color: #1a1a1a;
}

body.page-register .dashboard-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #514f4f;
  margin: 0;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

body.page-register .dashboard-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #F7E226 0%, #FFC107 100%);
  border-radius: 3px;
}

/* Subtitle text */
body.page-register #register > p {
  text-align: center;
}

/* ========================================
   FORM CONTAINER
   ======================================== */
body.page-register #register {
  margin: 0 auto 40px auto;
  padding: 0 20px;
  max-width: 450px;
  width: 100%;
  display: block;
  flex-wrap: initial;
  justify-content: initial;
  align-items: initial;
  box-sizing: border-box;
  align-self: center;
  background: transparent;
  background-color: transparent;
}

/* ========================================
   FORM — yellow card
   ======================================== */
body.page-register #registrationForm,
body.page-register #ownerRegistrationForm,
body.page-register #adminRegistrationForm {
  background: #F7E226;
  padding: 32px;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(247, 226, 38, 0.15);
  border: 1px solid rgba(247, 226, 38, 0.2);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  display: block;
}

body.page-register #registrationForm:hover,
body.page-register #ownerRegistrationForm:hover,
body.page-register #adminRegistrationForm:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(247, 226, 38, 0.3);
}

/* ========================================
   LABELS
   ======================================== */
body.page-register #registrationForm label,
body.page-register #ownerRegistrationForm label,
body.page-register #adminRegistrationForm label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   INPUT FIELDS
   ======================================== */
body.page-register #registrationForm input[type="text"],
body.page-register #registrationForm input[type="email"],
body.page-register #registrationForm input[type="password"],
body.page-register #registrationForm input[type="tel"],
body.page-register #registrationForm textarea,
body.page-register #ownerRegistrationForm input[type="text"],
body.page-register #ownerRegistrationForm input[type="email"],
body.page-register #ownerRegistrationForm input[type="password"],
body.page-register #ownerRegistrationForm input[type="tel"],
body.page-register #ownerRegistrationForm textarea,
body.page-register #adminRegistrationForm input[type="text"],
body.page-register #adminRegistrationForm input[type="email"],
body.page-register #adminRegistrationForm input[type="password"],
body.page-register #adminRegistrationForm input[type="tel"],
body.page-register #adminRegistrationForm textarea {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #ffffff;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  font-family: 'Nunito', sans-serif;
}

body.page-register #registrationForm textarea,
body.page-register #ownerRegistrationForm textarea,
body.page-register #adminRegistrationForm textarea {
  height: auto;
  min-height: 100px;
  max-height: none;
  resize: vertical;
}

/* Password input inside wrapper */
body.page-register .password-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  min-height: 56px;
}

body.page-register .password-input-wrapper input[type="password"],
body.page-register .password-input-wrapper input[type="text"] {
  margin-bottom: 0;
  padding-right: 50px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  width: 100%;
  border-radius: 12px;
}

/* Focus state */
body.page-register #registrationForm input:focus-visible,
body.page-register #registrationForm textarea:focus-visible,
body.page-register #ownerRegistrationForm input:focus-visible,
body.page-register #ownerRegistrationForm textarea:focus-visible,
body.page-register #adminRegistrationForm input:focus-visible,
body.page-register #adminRegistrationForm textarea:focus-visible {
  outline: none;
  border-color: #84c5ed;
  box-shadow: 0 0 0 4px rgba(132, 197, 237, 0.15);
  background: #ffffff;
  background-color: #ffffff;
}

/* Placeholder */
body.page-register #registrationForm input::placeholder,
body.page-register #registrationForm textarea::placeholder,
body.page-register #ownerRegistrationForm input::placeholder,
body.page-register #ownerRegistrationForm textarea::placeholder,
body.page-register #adminRegistrationForm input::placeholder,
body.page-register #adminRegistrationForm textarea::placeholder {
  color: #999;
  font-weight: 400;
}

/* Autocomplete override — KEEP !important for -webkit-autofill */
body.page-register #registrationForm input:-webkit-autofill,
body.page-register #registrationForm input:-webkit-autofill:hover,
body.page-register #registrationForm input:-webkit-autofill:focus,
body.page-register #ownerRegistrationForm input:-webkit-autofill,
body.page-register #ownerRegistrationForm input:-webkit-autofill:hover,
body.page-register #ownerRegistrationForm input:-webkit-autofill:focus,
body.page-register #adminRegistrationForm input:-webkit-autofill,
body.page-register #adminRegistrationForm input:-webkit-autofill:hover,
body.page-register #adminRegistrationForm input:-webkit-autofill:focus {
  -webkit-text-fill-color: #333 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  height: 56px !important;
  border-radius: 12px !important;
}

/* ========================================
   TOGGLE PASSWORD BUTTON
   ======================================== */
body.page-register .toggle-password {
  position: absolute;
  right: 20px;
  top: 18px;
  transform: none;
  background: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: #666;
  font-size: 18px;
  transition: color 0.3s ease;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  margin-bottom: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
}

body.page-register .toggle-password:hover {
  color: #84c5ed;
  transform: none;
  box-shadow: none;
  background: none;
  background-color: transparent;
}

body.page-register .toggle-password:active {
  color: #5a9fc5;
  transform: none;
  box-shadow: none;
  background: none;
  background-color: transparent;
}

body.page-register .toggle-password:focus-visible {
  outline: none;
  background: none;
  background-color: transparent;
}

body.page-register .toggle-password i {
  pointer-events: none;
  display: inline-block;
  line-height: 1;
  font-size: 18px;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

/* ========================================
   PASSWORD STRENGTH INDICATOR
   (injected by passwordValidator.js)
   ======================================== */
body.page-register #password-strength {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 16px;
}

body.page-register #password-requirements {
  padding-left: 0;
  margin: 6px 0 0 0;
  list-style: none;
}

body.page-register #password-requirements li {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   SUBMIT BUTTON — blue gradient
   ======================================== */
body.page-register #registrationForm button[type="submit"],
body.page-register #ownerRegistrationForm button[type="submit"],
body.page-register #adminRegistrationForm button[type="submit"] {
  width: 100%;
  height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  margin-top: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(132, 197, 237, 0.4);
}

body.page-register #registrationForm button[type="submit"]:hover,
body.page-register #ownerRegistrationForm button[type="submit"]:hover,
body.page-register #adminRegistrationForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #b9d4eb 0%, #84c5ed 100%);
  box-shadow: 0 6px 24px rgba(132, 197, 237, 0.5);
  transform: translateY(-2px);
}

body.page-register #registrationForm button[type="submit"]:active,
body.page-register #ownerRegistrationForm button[type="submit"]:active,
body.page-register #adminRegistrationForm button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(132, 197, 237, 0.3);
}

/* ========================================
   FORM MESSAGE
   ======================================== */
body.page-register #formMessage {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  min-height: 0;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
  overflow: hidden;
}

body.page-register #formMessage:not(:empty) {
  margin-top: 16px;
  opacity: 1;
  min-height: 46px;
  max-height: 200px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-register #formMessage.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #b1dfbb;
  color: #155724;
}

body.page-register #formMessage.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 2px solid #f1b0b7;
  color: #721c24;
}

/* ========================================
   LINKS SECTION
   ======================================== */
body.page-register #register > div[style] a {
  color: #0369a1;
  text-decoration: none;
  font-weight: 500;
}

body.page-register #register > div[style] a:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  body.page-register #registrationForm,
  body.page-register #ownerRegistrationForm,
  body.page-register #adminRegistrationForm {
    padding: 36px;
  }

  body.page-register .dashboard-header h2 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  body.page-register #registrationForm,
  body.page-register #ownerRegistrationForm,
  body.page-register #adminRegistrationForm {
    padding: 32px;
  }

  body.page-register #registrationForm input[type="email"],
  body.page-register #registrationForm input[type="password"],
  body.page-register #registrationForm input[type="text"],
  body.page-register #registrationForm input[type="tel"],
  body.page-register #ownerRegistrationForm input[type="email"],
  body.page-register #ownerRegistrationForm input[type="password"],
  body.page-register #ownerRegistrationForm input[type="text"],
  body.page-register #ownerRegistrationForm input[type="tel"],
  body.page-register #adminRegistrationForm input[type="email"],
  body.page-register #adminRegistrationForm input[type="password"],
  body.page-register #adminRegistrationForm input[type="text"],
  body.page-register #adminRegistrationForm input[type="tel"] {
    padding: 14px 18px;
    font-size: 14px;
  }

  body.page-register #registrationForm button[type="submit"],
  body.page-register #ownerRegistrationForm button[type="submit"],
  body.page-register #adminRegistrationForm button[type="submit"] {
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
  }

  body.page-register .social-login-btn {
    height: 48px;
  }

  body.page-register .dashboard-header {
    padding: 30px 20px 16px 20px;
  }

  body.page-register .dashboard-header h2 {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  body.page-register #register {
    width: 95%;
  }

  body.page-register #registrationForm,
  body.page-register #ownerRegistrationForm,
  body.page-register #adminRegistrationForm {
    padding: 28px;
    border-radius: 16px;
  }

  body.page-register #registrationForm input[type="email"],
  body.page-register #registrationForm input[type="password"],
  body.page-register #registrationForm input[type="text"],
  body.page-register #registrationForm input[type="tel"],
  body.page-register #ownerRegistrationForm input[type="email"],
  body.page-register #ownerRegistrationForm input[type="password"],
  body.page-register #ownerRegistrationForm input[type="text"],
  body.page-register #ownerRegistrationForm input[type="tel"],
  body.page-register #adminRegistrationForm input[type="email"],
  body.page-register #adminRegistrationForm input[type="password"],
  body.page-register #adminRegistrationForm input[type="text"],
  body.page-register #adminRegistrationForm input[type="tel"] {
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
  }

  body.page-register #registrationForm button[type="submit"],
  body.page-register #ownerRegistrationForm button[type="submit"],
  body.page-register #adminRegistrationForm button[type="submit"] {
    height: 46px;
    padding: 0 24px;
    font-size: 14px;
  }

  body.page-register .social-login-btn {
    height: 46px;
  }

  body.page-register #registrationForm label,
  body.page-register #ownerRegistrationForm label,
  body.page-register #adminRegistrationForm label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  body.page-register .dashboard-header {
    padding: 24px 16px 12px 16px;
  }

  body.page-register .dashboard-header h2 {
    font-size: 30px;
  }

  body.page-register .dashboard-header h2::after {
    width: 60px;
    height: 4px;
    bottom: -8px;
  }

  body.page-register #formMessage {
    font-size: 13px;
  }

  body.page-register #formMessage:not(:empty) {
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  body.page-register #register {
    width: 98%;
  }

  body.page-register #registrationForm,
  body.page-register #ownerRegistrationForm,
  body.page-register #adminRegistrationForm {
    padding: 24px;
    border-radius: 14px;
  }

  body.page-register #registrationForm input[type="email"],
  body.page-register #registrationForm input[type="password"],
  body.page-register #registrationForm input[type="text"],
  body.page-register #registrationForm input[type="tel"],
  body.page-register #ownerRegistrationForm input[type="email"],
  body.page-register #ownerRegistrationForm input[type="password"],
  body.page-register #ownerRegistrationForm input[type="text"],
  body.page-register #ownerRegistrationForm input[type="tel"],
  body.page-register #adminRegistrationForm input[type="email"],
  body.page-register #adminRegistrationForm input[type="password"],
  body.page-register #adminRegistrationForm input[type="text"],
  body.page-register #adminRegistrationForm input[type="tel"] {
    padding: 10px 14px;
    font-size: 12px;
  }

  body.page-register #registrationForm button[type="submit"],
  body.page-register #ownerRegistrationForm button[type="submit"],
  body.page-register #adminRegistrationForm button[type="submit"] {
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }

  body.page-register .social-login-btn {
    height: 44px;
  }

  body.page-register .dashboard-header h2 {
    font-size: 26px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
