/* ===== REGISTER PAGE - SPLIT-SCREEN LAYOUT ===== */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left brand panel */
.auth-brand {
  background: linear-gradient(160deg, #2F4F4A 0%, #1a3330 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(183, 227, 90, 0.07);
}
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(183, 227, 90, 0.05);
}
.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}
.auth-logo {
  width: 64px; height: 64px;
  background: rgba(183, 227, 90, 0.15);
  border: 2px solid rgba(183, 227, 90, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: #B7E35A;
  margin-bottom: 28px;
}
.auth-brand-inner h2 {
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 14px;
  line-height: 1.1;
}
.auth-brand-inner > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
  line-height: 1.7;
  margin: 0 0 32px;
}
.auth-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-perks li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-perks li i {
  color: #B7E35A;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.auth-brand-footer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-brand-footer a {
  color: #B7E35A;
  font-weight: 700;
  text-decoration: none;
}
.auth-brand-footer a:hover { text-decoration: underline; }

/* Right form panel */
.auth-form-panel {
  background: #f7f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
}
.auth-form-inner {
  width: 100%;
  max-width: 440px;
}
.auth-form-inner h1 {
  font-family: 'Tungsten-Bold', sans-serif;
  font-size: clamp(1.8em, 3vw, 2.4em);
  color: #2F4F4A;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 6px;
}
.auth-subtitle {
  color: #888;
  font-size: 0.95em;
  margin: 0 0 28px;
}

/* Alert messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-error {
  background: #fee;
  color: #c33;
  border-left: 4px solid #c33;
}
.alert i { font-size: 1.1em; flex-shrink: 0; }

/* Form rows & groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  color: #2F4F4A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
}
.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #B7E35A;
  font-size: 0.95em;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 2px solid #e4e8e3;
  border-radius: 8px;
  font-size: 0.95em;
  background: #fff;
  color: #333;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
  font-family: 'LatoWeb', sans-serif;
}
.input-wrap input:focus {
  outline: none;
  border-color: #B7E35A;
  box-shadow: 0 0 0 3px rgba(183, 227, 90, 0.15);
}
.input-wrap input::placeholder { color: #bbb; }

/* Password Toggle Button */
.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #B7E35A;
  cursor: pointer;
  font-size: 0.95em;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.pwd-toggle:hover {
  color: #9ad844;
}
.pwd-toggle:focus {
  outline: none;
}

/* Checkbox */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88em;
  color: #666;
  margin-bottom: 24px;
  cursor: pointer;
  line-height: 1.5;
}
.auth-checkbox input { margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.auth-checkbox a { color: #B7E35A; font-weight: 700; text-decoration: none; }
.auth-checkbox a:hover { text-decoration: underline; }

/* Remove margin from last form element */
.auth-form-inner > :last-child {
  margin-bottom: 0 !important;
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #B7E35A, #9ad844);
  color: #2F4F4A;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 700;
  font-family: 'LatoWebBold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(183, 227, 90, 0.35);
}
.auth-submit-btn:active { transform: translateY(0); }

/* Mobile sign-in link */
.auth-mobile-link {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #888;
}
.auth-mobile-link a { color: #B7E35A; font-weight: 700; text-decoration: none; }

/* Responsive */

/* Tablet/Medium Devices (900px and below) */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-panel { 
    padding: 50px 40px;
  }
  .auth-form-inner {
    max-width: 100%;
  }
  .auth-mobile-link { display: block; }
}

/* Medium Devices (768px and below) */
@media (max-width: 768px) {
  .auth-form-panel { 
    padding: 45px 30px; 
  }
  .auth-form-inner h1 {
    font-size: 1.8em;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .form-group {
    margin-bottom: 16px;
  }
}

/* Small Devices (600px and below) */
@media (max-width: 600px) {
  .auth-form-panel { 
    padding: 40px 24px;
  }
  .auth-form-inner h1 {
    font-size: 1.6em;
  }
  .auth-subtitle {
    margin-bottom: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 14px;
  }
  .form-group label {
    font-size: 0.8em;
  }
  .input-wrap input {
    padding: 10px 12px 10px 36px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  .input-wrap i {
    left: 12px;
    font-size: 0.9em;
  }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
  .auth-form-panel { 
    padding: 35px 16px;
  }
  .auth-form-inner {
    max-width: 100%;
  }
  .auth-form-inner h1 {
    font-size: 1.4em;
    margin-bottom: 4px;
  }
  .auth-subtitle {
    font-size: 0.9em;
    margin-bottom: 18px;
  }
  .alert {
    padding: 0.9rem 1rem;
    font-size: 0.9em;
    margin-bottom: 16px;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .form-group label {
    font-size: 0.75em;
    margin-bottom: 6px;
  }
  .input-wrap input {
    padding: 9px 10px 9px 34px;
    font-size: 16px;
    border-radius: 6px;
  }
  .input-wrap i {
    left: 10px;
    font-size: 0.85em;
  }
  .auth-checkbox {
    font-size: 0.85em;
    margin-bottom: 18px;
  }
  .auth-submit-btn {
    padding: 12px;
    font-size: 0.9em;
  }
  .auth-mobile-link {
    margin-top: 16px;
    font-size: 0.85em;
  }
}
