/* ==========================================================================
   JIJINGIBASE - LANDING AUTH STYLES
   Authentication modal and legal consent
   ========================================================================== */

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg-page);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.auth-modal {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 420px;
  width: 100%;
  margin: 40px auto;
  position: relative;
  animation: modal-appear 0.3s ease;
  box-shadow: none;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: static;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.auth-modal-close:hover {
  color: var(--text-primary);
}

.auth-modal-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-brand-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  object-fit: contain;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.auth-modal-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.auth-form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition-fast);
  min-height: 44px;
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--amber-bright);
}

.auth-form-input::placeholder {
  color: var(--text-muted);
}

.auth-password-wrapper {
  position: relative;
}

.auth-password-wrapper .auth-form-input {
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
}

.auth-password-toggle:hover {
  color: var(--text-primary);
}

.auth-error.is-hidden {
  display: none;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: #EF4444;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-success {
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  color: #10B981;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  accent-color: var(--amber-bright);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-link-btn {
  background: none;
  border: none;
  color: var(--amber-bright);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.auth-link-btn:hover {
  color: var(--gold-highlight);
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 16px;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch .auth-link-btn {
  font-size: 14px;
}
