/* =========================
   AUTH SHELL
========================= */

.shg-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  padding: 16px;
}

.shg-auth-box {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Header */
.shg-auth-header h1 {
  font-size: 22px;
  margin-bottom: 6px;
  text-align: center;
}

.shg-auth-header p {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

/* Tabs */
/* AUTH TABS – MUTED STYLE */
.shg-auth-tabs {
  display: flex;
  background: #f2f4f7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.shg-auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280; /* muted gray */
  cursor: pointer;
  border-radius: 8px;
}

.shg-auth-tab.active {
  background: #ffffff;
  color: #111827; /* near-black */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


/* Panels */
.shg-auth-panel {
  display: none;
}

.shg-auth-panel.active {
  display: block;
}

/* Forms */
.shg-auth-form {
  display: flex;
  flex-direction: column;
}

.shg-form-group {
  margin-bottom: 14px;
}

.shg-form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.shg-form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* LOGIN INPUT FIX – iOS SAFE */
.login-form input,
.login-form select {
  min-height: 44px;       /* Apple touch target */
  line-height: 1.4;
}

/* LOGIN INPUT FIX – iOS SAFE */
.login-form input,
.login-form input[type="password"],
.login-form select,
.login-form textarea {
  font-size: 16px !important;
}
/* Password group */

.shg-password-group {
  position: relative;
}


.shg-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  background: transparent;
  border: none;
  padding: 4px 6px;

  font-size: 12px;
  font-weight: 500;
  color: #6b7280; /* muted gray */

  cursor: pointer;
  
   /* FULL RESET */
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
  line-height: 1;
}

/* Hover */
.shg-password-toggle:hover {
  color: #111827;
}

/* Focus (important for mobile) */
.shg-password-toggle:focus,
.shg-password-toggle:active {
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Mobile tap highlight removal */
.shg-password-toggle {
  -webkit-tap-highlight-color: transparent;
}



/* Buttons */
.shg-btn {
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.shg-btn-primary {
  background: #1f9d55;
  color: #fff;
}

.shg-btn-google {
  background: #fff;
  border: 1px solid #ddd;
}

/* Divider */
.shg-auth-divider {
  text-align: center;
  margin: 16px 0;
  font-size: 12px;
  color: #999;
}

/* Footer links */
.shg-auth-links,
.shg-auth-footer {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
}

.shg-auth-footer a,
.shg-auth-links a {
  color: #1f9d55;
  font-weight: 600;
  text-decoration: none;
}

/* Error */
.shg-auth-error {
  background: #ffeaea;
  color: #c0392b;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* =========================
   DESKTOP ENHANCEMENTS
========================= */

@media (min-width: 768px) {
  .shg-auth-box {
    padding: 32px;
  }

  .shg-auth-header h1 {
    font-size: 24px;
  }
}


.shg-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.shg-btn.loading {
  position: relative;
  pointer-events: none;
}

.shg-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: shg-spin 0.8s linear infinite;
}

@keyframes shg-spin {
  to { transform: rotate(360deg) translate(-50%, -50%); }
}
