/* ==========================================================================
   Investgrowidentity - Login & Auth Page
   ========================================================================== */

:root {
  --igi-gold-light: #F5D38A;
  --igi-gold: #D8A843;
  --igi-gold-dark: #A67C1E;
  --igi-gold-gradient: linear-gradient(135deg, #FBE09E 0%, #D8A843 55%, #B8861B 100%);
  --igi-gold-glow: rgba(216, 168, 67, 0.35);
  
  --igi-wine-deep: #2A040A;
  --igi-wine-card: rgba(48, 14, 18, 0.88);
  --igi-border-gold: rgba(216, 168, 67, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.investgrow-auth {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background-image: 
    linear-gradient(180deg, rgba(20, 6, 8, 0.4) 0%, rgba(20, 6, 8, 0.75) 100%),
    url('../images/investgrow/bg-palm-sunrise.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 80px;
  position: relative;
}

.auth-container {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Logo Header */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-emblem {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.auth-brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.auth-brand-name span {
  color: var(--igi-gold-light);
}

.auth-brand-tagline {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--igi-gold-light);
  margin-top: 6px;
  text-transform: uppercase;
}

/* Glassmorphic Card */
.auth-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(50, 16, 15, 0.88) 0%, rgba(26, 7, 9, 0.94) 100%);
  border: 1px solid var(--igi-border-gold);
  border-radius: 32px;
  padding: 44px 34px 38px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 230, 160, 0.15);
  text-align: center;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.auth-card h1 span {
  color: var(--igi-gold-light);
}

.auth-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin-bottom: 28px;
  padding: 0 4px;
}

/* Form Fields */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group-auth,
.form-group-reg {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.form-group-auth label,
.form-group-reg label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.2px;
}

.input-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(30, 8, 10, 0.68);
  border: 1px solid rgba(216, 168, 67, 0.38);
  border-radius: 16px;
  padding: 0 18px;
  height: 56px;
  transition: all 0.25s ease;
}

.input-field:focus-within {
  border-color: var(--igi-gold);
  box-shadow: 0 0 16px var(--igi-gold-glow);
  background: rgba(40, 12, 16, 0.88);
}

.input-icon {
  width: 24px;
  height: 24px;
  color: var(--igi-gold-light);
  display: grid;
  place-items: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

.input-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 100%;
}

.input-field input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.btn-toggle-pw {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-toggle-pw:hover {
  color: var(--igi-gold-light);
}

.btn-toggle-pw svg {
  width: 20px;
  height: 20px;
}

/* Captcha Field Row */
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 115px 52px;
  gap: 12px;
  align-items: center;
}

.captcha-box {
  height: 56px;
  border-radius: 16px;
  background: #ECE5D8;
  color: #381A10;
  display: grid;
  place-items: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 5px;
  user-select: none;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.04) 5px, rgba(0,0,0,0.04) 10px);
  border: 1px solid rgba(216, 168, 67, 0.45);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.btn-refresh-captcha {
  height: 56px;
  width: 52px;
  border-radius: 16px;
  background: rgba(30, 8, 10, 0.68);
  border: 1px solid rgba(216, 168, 67, 0.38);
  color: var(--igi-gold-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-captcha:hover {
  border-color: var(--igi-gold);
  background: rgba(50, 15, 20, 0.88);
  transform: rotate(45deg);
}

.btn-refresh-captcha svg {
  width: 22px;
  height: 22px;
}

/* Options Row (Ingat saya & Lupa password) */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  margin: 4px 0 6px;
  padding: 0 2px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
}

.remember-label input[type="checkbox"] {
  accent-color: var(--igi-gold);
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.forgot-link {
  color: var(--igi-gold-light);
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

/* Submit Button */
.btn-auth-submit {
  width: 100%;
  height: 56px;
  margin-top: 10px;
  border-radius: 50px;
  background: var(--igi-gold-gradient);
  color: #240508;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  box-shadow: 0 8px 24px var(--igi-gold-glow);
  transition: all 0.25s ease;
}

.btn-auth-submit .arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #240508;
  color: var(--igi-gold-light);
  display: grid;
  place-items: center;
  font-size: 15px;
  position: absolute;
  right: 14px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(216, 168, 67, 0.55);
}

/* Divider & Register link */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 26px 0 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(216, 168, 67, 0.28);
}

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

.register-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.btn-register-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid var(--igi-gold);
  color: var(--igi-gold-light);
  font-weight: 700;
  font-size: 13.5px;
  background: rgba(40, 10, 15, 0.65);
  transition: all 0.2s ease;
}

.btn-register-pill:hover {
  background: var(--igi-gold-gradient);
  color: #240508;
}

/* Bottom 3 Trust Badges */
.auth-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-bottom: 30px;
  width: 100%;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(216, 168, 67, 0.2);
}

.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--igi-gold-light);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

/* Toast alert */
.toast-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #7A141E;
  border: 1px solid var(--igi-gold);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Media Queries */
@media (max-width: 480px) {
  body.investgrow-auth {
    padding: 30px 14px 60px;
  }
  .auth-logo-emblem {
    width: 82px;
    height: 82px;
    margin-bottom: 10px;
  }
  .auth-brand-name {
    font-size: 23px;
  }
  .auth-card {
    padding: 36px 20px 30px;
    border-radius: 26px;
  }
  .auth-card h1 {
    font-size: 25px;
  }
  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .auth-form {
    gap: 18px;
  }
  .input-field {
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
  }
  .input-field input {
    font-size: 14.5px;
  }
  .captcha-row {
    grid-template-columns: 1fr 105px 48px;
    gap: 8px;
  }
  .captcha-box {
    height: 54px;
    border-radius: 14px;
    font-size: 19px;
    letter-spacing: 4px;
  }
  .btn-refresh-captcha {
    height: 54px;
    width: 48px;
    border-radius: 14px;
  }
  .form-options {
    margin: 4px 0 6px;
    font-size: 13px;
  }
  .btn-auth-submit {
    height: 54px;
    font-size: 15.5px;
    margin-top: 8px;
  }
  .auth-divider {
    margin: 22px 0 18px;
  }
  .register-row {
    font-size: 13.5px;
    gap: 10px;
  }
  .btn-register-pill {
    padding: 8px 18px;
    font-size: 13px;
  }
  .auth-trust-badges {
    margin-top: 28px;
    gap: 10px;
    padding-bottom: 20px;
  }
  .trust-item span {
    font-size: 10.5px;
  }
}

@media (max-width: 360px) {
  .captcha-row {
    grid-template-columns: 1fr 90px 42px;
    gap: 6px;
  }
  .captcha-box {
    font-size: 17px;
    letter-spacing: 3px;
  }
  .auth-card {
    padding: 28px 16px 24px;
  }
}
