/* ==========================================================================
   INSTASHIELD - AUTHENTICATION PAGES STYLESHEET (css/auth.css)
   Used for login.html and signup.html
   ========================================================================== */

/* AUTH HERO / CONTAINER (DARK THEME - SAME AS HOME & ABOUT) */
.auth-hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 90px;
  background: radial-gradient(ellipse 70% 60% at 50% 25%, rgba(49, 199, 232, 0.18), transparent 70%),
              radial-gradient(ellipse 50% 50% at 85% 65%, rgba(8, 118, 185, 0.15), transparent 60%),
              linear-gradient(135deg, var(--midnight) 0%, var(--navy) 50%, var(--midnight) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
}

.auth-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.auth-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

/* LEFT SIDE: BRANDING & PERKS */
.auth-info-col h1 {
  font-size: clamp(36px, 4.2vw, 54px);
  margin: 12px 0 20px;
  line-height: 1.15;
}

.auth-info-col p.auth-sub {
  font-size: 17px;
  color: #cfe3ee;
  line-height: 1.65;
  margin-bottom: 36px;
}

.auth-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-perk-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.auth-perk-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(49, 199, 232, 0.12);
  border: 1px solid rgba(49, 199, 232, 0.35);
  color: var(--cyan);
  flex-shrink: 0;
}

.auth-perk-icon svg {
  width: 22px;
  height: 22px;
}

.auth-perk-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-perk-text p {
  font-size: 13.5px;
  color: #bcd4e3;
  margin: 0;
  line-height: 1.5;
}

/* RIGHT SIDE: GLASS FORM CARD */
.auth-card {
  background: rgba(6, 43, 73, 0.55);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 44px 38px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 25px 60px rgba(0, 10, 25, 0.5);
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.auth-card-head {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-card-head p {
  font-size: 14.5px;
  color: #bcd4e3;
}

/* FORM FIELDS */
.auth-form-group {
  width: 100%;
  min-width: 0;
  margin-bottom: 20px;
}

.auth-form-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

.auth-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #cfe3ee;
  margin-bottom: 8px;
}

.auth-input-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.auth-input,
.auth-select {
  width: 100% !important;
  display: block !important;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(130, 220, 245, 0.28);
  background: rgba(3, 21, 34, 0.6);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box !important;
}

.auth-input::placeholder {
  color: #64879f;
}

.auth-input:focus,
.auth-select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(3, 21, 34, 0.85);
  box-shadow: 0 0 0 3px rgba(49, 199, 232, 0.25);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #8faec4;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
  z-index: 5;
}

.password-toggle-btn:hover {
  color: var(--cyan);
}

/* AUTH VALIDATION ERROR LABELS (ALWAYS DIRECTLY BELOW INPUT) */
label.error,
.error-msg,
span.error {
  float: none !important;
  color: #f87171 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  display: block !important;
  width: 100% !important;
  clear: both !important;
  font-weight: 500 !important;
  text-align: left !important;
}

input.error,
select.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

/* REMEMBER ME & FORGOT PASSWORD */
.auth-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 24px;
  color: #bdd4e3;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 16px;
  height: 16px;
}

.auth-forgot-link {
  color: var(--cyan);
  font-weight: 600;
  transition: color 0.2s;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* SUBMIT BUTTON */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(100deg, var(--blue), var(--cyan) 75%, var(--mint));
  color: var(--midnight);
  font-size: 15.5px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(49, 199, 232, 0.4);
}

/* DIVIDER */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #6d90a8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(130, 220, 245, 0.18);
}

.auth-divider span {
  padding: 0 14px;
}

/* SOCIAL LOGIN */
.auth-social-btn {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(130, 220, 245, 0.25);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.auth-social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cyan);
}

/* SWITCH LINK */
.auth-switch-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #bcd4e3;
}

.auth-switch-text a {
  color: var(--cyan);
  font-weight: 700;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

/* TOAST / ALERT NOTIFICATION */
.auth-alert-box {
  display: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-alert-box.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 214, 74, 0.18);
  border: 1px solid rgba(139, 214, 74, 0.4);
  color: #bdfa7a;
}

.auth-alert-box.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 75, 75, 0.18);
  border: 1px solid rgba(255, 75, 75, 0.4);
  color: #ff9e9e;
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  .auth-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .auth-info-col {
    text-align: center;
  }

  .auth-perks-list {
    display: none;
  }

  .auth-hero {
    padding-top: 140px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

/* REGISTRATION CARD & WIDE LAYOUT */
.auth-card.auth-card-lg {
  max-width: 720px;
  width: 100%;
}

.auth-select option {
  background: #062b49;
  color: #ffffff;
  padding: 8px;
}

/* RADIO PILLS (SIDE LEFT / RIGHT) */
.auth-radio-pills {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(3, 21, 34, 0.6);
  border: 1px solid rgba(130, 220, 245, 0.28);
  color: #cfe3ee;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-radio-pill input[type="radio"] {
  accent-color: var(--cyan);
  margin: 0;
}

.auth-radio-pill:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(49, 199, 232, 0.15);
  color: #ffffff;
}

/* SPONSOR NAME FEEDBACK */
.sponsor-feedback-badge {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  display: none;
}

.sponsor-feedback-badge span {
  font-weight: 800;
  color: #86efac;
}

/* JQUERY VALIDATOR ERRORS */
label.error {
  color: #ff7b7b !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
  display: block !important;
}

input.error,
select.error {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.25) !important;
}

.hide-div {
  display: none !important;
}

