/* ===============================
   GLOBAL RESET
================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* enable native smooth scrolling when links jump around */
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  line-height: 1.6;
  color: #333;    
  top: 0px !important;
  overflow-wrap: break-word; /* FIX: Prevents long emails/passwords from causing horizontal scrolling */
  word-wrap: break-word;
  overflow-x: clip; /* Safely hides horizontal overflow */
}

h1, h2, h3 {
  text-align: center;
}

/* google translate */

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}


.goog-te-balloon-frame {
  display: none !important;
}

#goog-gt-tt {
  display: none !important;
}

/* ===============================
   NAVBAR (Desktop First)
================================== */

/* =============================== 
   REGISTRATION FORM SECTION
================================== */
.registration-form {
  background: linear-gradient(135deg, #352816 30%, #6a040f 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 50px 5%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.personal-details {
  background: rgba(255, 255, 255, 0.98);
  padding: 42px 40px;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  max-width: 520px;
  width: 100%;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #0f172a;
}

.login-header p {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

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

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-group input[type="checkbox"] {
  width: auto;
}

.form-group label[for="accept"] {
  display: inline;
  font-weight: 400;
  color: #334155;
}

.password-wrapper {
  position: relative;
}

.toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 13px;
  color:grey;
  user-select: none;
  font-weight: 700;
}

.btn-primary,
.btn-secondary,
button[type="submit"] {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #352816 30%, #6a040f 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  width: auto;
  background: transparent;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.15);
  margin-top: 12px;
  padding: 12px 28px;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
}

.checkbox-group a {
  color: #2563eb;
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.register {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #475569;
}

.register p {
  margin: 0;
}

.register a {
  color: grey;
  text-decoration: none;
}

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

.optional {
  font-weight: 400;
  color: #64748b;
}

/* ===============================
   RESPONSIVE DESIGN
================================== */
@media (max-width: 768px) {
  .registration-form {
    padding: 40px 4%;
  }

  .personal-details {
    padding: 34px 24px;
  }
}

@media (max-width: 480px) {
  .registration-form {
    padding: 30px 3%;
  }

  .personal-details {
    padding: 28px 20px;
  }
}

.auth-footer {
  text-align: center;
  padding: 18px 16px 22px;
  color: rgba(55, 65, 81, 0.75);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
}

@media (max-width: 480px) {
  .registration-form {
    padding: 30px 3%;
  }

  .personal-details {
    padding: 28px 20px;
  }

  .login-header h2 {
    font-size: 28px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px;
    padding: 14px 14px;
  }

  .btn-primary,
  .btn-secondary,
  button[type="submit"] {
    font-size: 15px;
  }
}
